diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/davinci/vpbe.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/davinci/vpbe.c b/drivers/media/video/davinci/vpbe.c index c12a714c080c..1cc254d52a41 100644 --- a/drivers/media/video/davinci/vpbe.c +++ b/drivers/media/video/davinci/vpbe.c | |||
@@ -853,8 +853,10 @@ static __devinit int vpbe_probe(struct platform_device *pdev) | |||
853 | 853 | ||
854 | if (cfg->outputs->num_modes > 0) | 854 | if (cfg->outputs->num_modes > 0) |
855 | vpbe_dev->current_timings = vpbe_dev->cfg->outputs[0].modes[0]; | 855 | vpbe_dev->current_timings = vpbe_dev->cfg->outputs[0].modes[0]; |
856 | else | 856 | else { |
857 | kfree(vpbe_dev); | ||
857 | return -ENODEV; | 858 | return -ENODEV; |
859 | } | ||
858 | 860 | ||
859 | /* set the driver data in platform device */ | 861 | /* set the driver data in platform device */ |
860 | platform_set_drvdata(pdev, vpbe_dev); | 862 | platform_set_drvdata(pdev, vpbe_dev); |