Commit fba4e087361605d1eed63343bb08811f097c83ee
Committed by
Zhang Rui
1 parent
608f62b996
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
ACPI video: Ignore errors after _DOD evaluation.
There are systems where video module known to work fine regardless of broken _DOD and ignoring returned value here doesn't cause any issues later. This should fix brightness controls on some laptops. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=47861 Signed-off-by: Igor Murzov <e-mail@date.by> Reviewed-by: Sergey V <sftp.mtuci@gmail.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Showing 1 changed file with 7 additions and 4 deletions Side-by-side Diff
drivers/acpi/video.c
... | ... | @@ -1345,12 +1345,15 @@ |
1345 | 1345 | acpi_video_bus_get_devices(struct acpi_video_bus *video, |
1346 | 1346 | struct acpi_device *device) |
1347 | 1347 | { |
1348 | - int status; | |
1348 | + int status = 0; | |
1349 | 1349 | struct acpi_device *dev; |
1350 | 1350 | |
1351 | - status = acpi_video_device_enumerate(video); | |
1352 | - if (status) | |
1353 | - return status; | |
1351 | + /* | |
1352 | + * There are systems where video module known to work fine regardless | |
1353 | + * of broken _DOD and ignoring returned value here doesn't cause | |
1354 | + * any issues later. | |
1355 | + */ | |
1356 | + acpi_video_device_enumerate(video); | |
1354 | 1357 | |
1355 | 1358 | list_for_each_entry(dev, &device->children, node) { |
1356 | 1359 |