backlight: classmate-laptop - Fix missing registration failure handling
authorBruno Prémont <bonbons@linux-vserver.org>
Fri, 26 Feb 2010 11:59:39 +0000 (12:59 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 16 Mar 2010 20:04:07 +0000 (20:04 +0000)
commitf0af78991363d704694a3618b638662c97d8a110
tree8ce2e6618ba87536d11d43136f25bcadd932c585
parent36bc5ee6a8d13333980fa54e97d3469d3d4cda98
backlight: classmate-laptop - Fix missing registration failure handling

Check newly registered backlight_device for error and properly
return error to parent.
Mark struct backlight_ops as const.

Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
drivers/platform/x86/classmate-laptop.c