ACPI / video: Propagate the error code for acpi_video_register
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 1 Mar 2015 10:41:38 +0000 (10:41 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 4 Mar 2015 14:10:36 +0000 (15:10 +0100)
commit28d634038d8fed8d25b92f21b728318a79c0be00
tree894a1b28b2b1e84ab43a1e9a460ae7bae3b331b1
parent6e17cb12881ba8d5e456b89f072dc6b70048af36
ACPI / video: Propagate the error code for acpi_video_register

Report the actual error code from acpi_bus_register_driver(), it may
help future debugging (typically ENODEV as previously reported, but the
unusual cases are where it may help most).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/video.c