aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/s5p-g2d/g2d.c
diff options
context:
space:
mode:
authorTony Prisk <linux@prisktech.co.nz>2012-12-18 03:28:41 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-01-06 06:41:40 -0500
commit15514fb567728b236dfbedeb360f55791302bf6e (patch)
treedfc34df68956104bbd5363ff326bacf7b54687a2 /drivers/media/platform/s5p-g2d/g2d.c
parentd322bb915425b65a51c48b90e912af55762cc745 (diff)
[media] s5p-g2d: Fix incorrect usage of IS_ERR_OR_NULL
Replace IS_ERR_OR_NULL with IS_ERR on clk_get results. Signed-off-by: Tony Prisk <linux@prisktech.co.nz> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/s5p-g2d/g2d.c')
-rw-r--r--drivers/media/platform/s5p-g2d/g2d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/s5p-g2d/g2d.c b/drivers/media/platform/s5p-g2d/g2d.c
index 1bfbc325836b..dcd53357704d 100644
--- a/drivers/media/platform/s5p-g2d/g2d.c
+++ b/drivers/media/platform/s5p-g2d/g2d.c
@@ -715,7 +715,7 @@ static int g2d_probe(struct platform_device *pdev)
715 } 715 }
716 716
717 dev->clk = clk_get(&pdev->dev, "sclk_fimg2d"); 717 dev->clk = clk_get(&pdev->dev, "sclk_fimg2d");
718 if (IS_ERR_OR_NULL(dev->clk)) { 718 if (IS_ERR(dev->clk)) {
719 dev_err(&pdev->dev, "failed to get g2d clock\n"); 719 dev_err(&pdev->dev, "failed to get g2d clock\n");
720 return -ENXIO; 720 return -ENXIO;
721 } 721 }
@@ -727,7 +727,7 @@ static int g2d_probe(struct platform_device *pdev)
727 } 727 }
728 728
729 dev->gate = clk_get(&pdev->dev, "fimg2d"); 729 dev->gate = clk_get(&pdev->dev, "fimg2d");
730 if (IS_ERR_OR_NULL(dev->gate)) { 730 if (IS_ERR(dev->gate)) {
731 dev_err(&pdev->dev, "failed to get g2d clock gate\n"); 731 dev_err(&pdev->dev, "failed to get g2d clock gate\n");
732 ret = -ENXIO; 732 ret = -ENXIO;
733 goto unprep_clk; 733 goto unprep_clk;