summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorZhaowei Yuan <zhaowei.yuan@samsung.com>2014-04-02 15:22:33 +0800
committerSylwester Nawrocki <s.nawrocki@samsung.com>2014-04-03 05:56:48 -0700
commit4f4090491f8f5c463314f5fd6cc3be47680abaf7 (patch)
treed8aec16bef47371e0c01e7192e268a955fc6795b /drivers
parentc6a71f11cdf0d521d14494ee4a5c2df8f7d44922 (diff)
downloadlinux-3.10-4f4090491f8f5c463314f5fd6cc3be47680abaf7.tar.gz
linux-3.10-4f4090491f8f5c463314f5fd6cc3be47680abaf7.tar.bz2
linux-3.10-4f4090491f8f5c463314f5fd6cc3be47680abaf7.zip
media: s5p_mfc: remove the code checking dev->plat_dev
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/platform/s5p-mfc/s5p_mfc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
index 48e454662ee..ff87daf5c29 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
@@ -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);