backlight: msi-laptop, msi-wmi: fix incomplete registration failure handling
authorBruno Prémont <bonbons@linux-vserver.org>
Fri, 26 Feb 2010 12:17:16 +0000 (13:17 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 16 Mar 2010 20:12:11 +0000 (20:12 +0000)
commit28d85873cd6d8d3176e30e02b941b1329df1024c
tree40be9e9db78823cfde9b5df0e18046ae0a67002a
parentfa11de0a33e214a00e205494c27fb5a7bb71a5fa
backlight: msi-laptop, msi-wmi: fix incomplete registration failure handling

Properly return backlight registration error to parent.
Mark struct backlight_ops as const.

Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org>
Reviewed-by: Anisse Astier <anisse@astier.eu>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
drivers/platform/x86/msi-wmi.c