backlight: blackfin - Fix missing registration failure handling
authorBruno Prémont <bonbons@linux-vserver.org>
Fri, 26 Feb 2010 12:04:54 +0000 (13:04 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 16 Mar 2010 20:10:17 +0000 (20:10 +0000)
commitfa11de0a33e214a00e205494c27fb5a7bb71a5fa
treebed4af34b31f9e782159f3c2c17fe13817df52a9
parentf0af78991363d704694a3618b638662c97d8a110
backlight: blackfin - 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>
Acked-by: Mike Frysinger <vapier@gentoo.org> (constify struct backlight_ops)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
drivers/video/bf54x-lq043fb.c
drivers/video/bfin-t350mcqb-fb.c