summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdrivers/video/mxc/ccwmx51_display.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/video/mxc/ccwmx51_display.c b/drivers/video/mxc/ccwmx51_display.c
index a4912cace5e1..70a5b25f3fe9 100755
--- a/drivers/video/mxc/ccwmx51_display.c
+++ b/drivers/video/mxc/ccwmx51_display.c
@@ -75,10 +75,11 @@ static int __devinit lcd_sync_probe(struct platform_device *pdev)
{
struct ccwmx51_lcd_pdata *plat = pdev->dev.platform_data;
- if (plat) {
- if (plat->reset)
- plat->reset();
- }
+ if (!plat)
+ return -ENODEV;
+
+ if (plat->reset)
+ plat->reset();
plcd_dev = pdev;
lcd_init_fb(registered_fb[plat->vif]);