video/exynos: dp: Fix bug when checking dp->irq
authorSean Paul <seanpaul@chromium.org>
Fri, 3 Aug 2012 07:38:21 +0000 (00:38 -0700)
committerGerrit <chrome-bot@google.com>
Tue, 7 Aug 2012 16:08:40 +0000 (09:08 -0700)
Fix a bug where we check !dp->irq instead of the correct check for
-ENXIO.

BUG=None
TEST=None

Change-Id: Ibcdd16fb71eb41e4380ac8911ad6063634ff80e2
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/29144
Reviewed-by: Olof Johansson <olofj@chromium.org>
drivers/video/exynos/exynos_dp_core.c

index ac67b83..ccb0438 100644 (file)
@@ -1009,7 +1009,7 @@ static int __devinit exynos_dp_probe(struct platform_device *pdev)
        }
 
        dp->irq = platform_get_irq(pdev, 0);
-       if (!dp->irq) {
+       if (dp->irq == -ENXIO) {
                dev_err(&pdev->dev, "failed to get irq\n");
                ret = -ENODEV;
                goto err_ioremap;