[media] s5p-g2d: Fix incorrect usage of IS_ERR_OR_NULL
authorTony Prisk <linux@prisktech.co.nz>
Tue, 18 Dec 2012 08:28:41 +0000 (05:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 6 Jan 2013 11:41:40 +0000 (09:41 -0200)
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>
drivers/media/platform/s5p-g2d/g2d.c

index 1bfbc325836b7077b9609da1af8f9958b92d4608..dcd53357704d4973c17f847f367c1a45b8b33269 100644 (file)
@@ -715,7 +715,7 @@ static int g2d_probe(struct platform_device *pdev)
        }
 
        dev->clk = clk_get(&pdev->dev, "sclk_fimg2d");
-       if (IS_ERR_OR_NULL(dev->clk)) {
+       if (IS_ERR(dev->clk)) {
                dev_err(&pdev->dev, "failed to get g2d clock\n");
                return -ENXIO;
        }
@@ -727,7 +727,7 @@ static int g2d_probe(struct platform_device *pdev)
        }
 
        dev->gate = clk_get(&pdev->dev, "fimg2d");
-       if (IS_ERR_OR_NULL(dev->gate)) {
+       if (IS_ERR(dev->gate)) {
                dev_err(&pdev->dev, "failed to get g2d clock gate\n");
                ret = -ENXIO;
                goto unprep_clk;