fbdev: sh_mobile_lcdc: checking NULL instead of IS_ERR()
authorDan Carpenter <error27@gmail.com>
Mon, 21 Mar 2011 15:03:13 +0000 (15:03 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 22 Mar 2011 07:08:48 +0000 (16:08 +0900)
commitbeee1f20a185c7e79fd33bb83e04fe44ecd75af3
treef7c9972b12bbcde5f2de7306494a4ada042e94ad
parente0998eab678233fae7dff7b92db08ad0f01acf91
fbdev: sh_mobile_lcdc: checking NULL instead of IS_ERR()

backlight_device_register() returns an ERR_PTR.  It doesn't return NULL.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/sh_mobile_lcdcfb.c