From: Hans de Goede Date: Tue, 8 Jul 2014 08:47:22 +0000 (+0200) Subject: asus-wmi: backlight_init: Stop treating -ENODEV as if its not an error X-Git-Tag: omap-for-v3.17/fixes-against-rc2~44^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86ac2735ae09ab012da358d4dff73f3bcad50583;p=pandora-kernel.git asus-wmi: backlight_init: Stop treating -ENODEV as if its not an error When bl_power support got added to asus-wmi, the error handling for it was written to ignore -ENODEV, to avoid not registering a backlight interface for models which have no bl_power control, but do have brightness control. At the same time the error handling for brightness_max was modified to do the same, this is wrong, when there is no brightness_max asus-wmi should not register a backlight interface. Note the caller of asus_wmi_backlight_init already special cases -ENODEV, and will not cause the wmi driver regristration to fail because of a -ENODEV return from asus_wmi_backlight_init. https://bugzilla.redhat.com/show_bug.cgi?id=1097436 Signed-off-by: Hans de Goede Signed-off-by: Matthew Garrett --- Reading git-diff-tree failed