ACPI / video: Dummy acpi_video_register should return error code
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Wed, 22 Jun 2016 18:56:01 +0000 (00:26 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 25 Jun 2016 00:56:59 +0000 (02:56 +0200)
commit0346223a2fefeda6e453e3dde44dc95c32d54d04
treef2d8a06a65811fb862ccd1f47032c0f25a759cf0
parente34fbbac669de0b7fb7803929d0477f35f6e2833
ACPI / video: Dummy acpi_video_register should return error code

The inline acpi_video_register stub simply allows compilation on systems
with CONFIG_ACPI_VIDEO disabled. the dummy acpi_video_register does not
register an acpi_bus_driver at all. The inline acpi_video_register should
return to indicate lack of support when attempting to register an
acpi_bus_driver on such a system with CONFIG_ACPI_VIDEO disabled.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Reviewed-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/acpi/video.h