media: s5p_mfc: remove the code checking dev->plat_dev
authorZhaowei Yuan <zhaowei.yuan@samsung.com>
Wed, 2 Apr 2014 07:22:33 +0000 (15:22 +0800)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:47:24 +0000 (11:47 +0900)
We should remove the code checking dev->plat_dev since we
can ensure the pointer pdev can not be NULL.

Change-Id: Ibdc44403068ee4462e414d6e84757b8a4c2b512c
Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
drivers/media/platform/s5p-mfc/s5p_mfc.c

index 48e4546..ff87daf 100644 (file)
@@ -1038,11 +1038,6 @@ static int s5p_mfc_probe(struct platform_device *pdev)
        spin_lock_init(&dev->irqlock);
        spin_lock_init(&dev->condlock);
        dev->plat_dev = pdev;
-       if (!dev->plat_dev) {
-               dev_err(&pdev->dev, "No platform data specified\n");
-               return -ENODEV;
-       }
-
        dev->variant = mfc_get_drv_data(pdev);
 
        ret = s5p_mfc_init_pm(dev);