From patchwork Thu Nov 1 10:22:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 1684261 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id B0F2AE00A6 for ; Thu, 1 Nov 2012 10:23:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759985Ab2KAKW6 (ORCPT ); Thu, 1 Nov 2012 06:22:58 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:40723 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759860Ab2KAKWz (ORCPT ); Thu, 1 Nov 2012 06:22:55 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MCT003T60U5O9Y0@mailout3.samsung.com> for linux-fbdev@vger.kernel.org; Thu, 01 Nov 2012 19:22:54 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-0d-50924d7efce1 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 8E.EC.01231.E7D42905; Thu, 01 Nov 2012 19:22:54 +0900 (KST) Received: from DOJG1HAN02 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MCT009020U6M950@mmp2.samsung.com> for linux-fbdev@vger.kernel.org; Thu, 01 Nov 2012 19:22:54 +0900 (KST) From: Jingoo Han To: 'Florian Tobias Schandinat' Cc: linux-fbdev@vger.kernel.org, 'Sean Paul' , 'Jingoo Han' References: <011d01cdb81a$4914c1d0$db3e4570$%han@samsung.com> In-reply-to: <011d01cdb81a$4914c1d0$db3e4570$%han@samsung.com> Subject: [PATCH v3 5/8] video: exynos_dp: Fix bug when checking dp->irq Date: Thu, 01 Nov 2012 19:22:54 +0900 Message-id: <012101cdb81a$dac22730$90467590$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac24Gkjta+Tb9VxGTiWIp02dvaPqfwAAHFbw Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNLMWRmVeSWpSXmKPExsVy+t9jQd0630kBBrNXSFuc6PvA6sDo8XmT XABjFJdNSmpOZllqkb5dAlfG9qPbWQsesFWsvTSHpYHxEmsXIyeHhICJxMKmtUwQtpjEhXvr 2boYuTiEBKYzSjzavZwVwpnFJLFx7wk2kCo2ATWJL18Os3cxcnCICFhJbNqqCWIyC2RJnD6m AFIhJGArsa7lEyOIzSlgJ9H6sAlsvrCAu8T+9hNgNouAqsSk7inMIDYvUP2/ndtZIWxBiR+T 77GA2MwCWhLrdx5ngrDlJTavecsMskpCQF3i0V9dkLCIgJHEl2v/2SBKRCT2vXjHOIFRaBaS SbOQTJqFZNIsJC0LGFlWMYqmFiQXFCel5xrqFSfmFpfmpesl5+duYgQH8TOpHYwrGywOMQpw MCrx8BqWTgwQYk0sK67MPcQowcGsJML7uBsoxJuSWFmVWpQfX1Sak1p8iFGag0VJnLfZIyVA SCA9sSQ1OzW1ILUIJsvEwSnVwGhppJ9wqDjrZ2WNb8qRwxENr/0vxPzpetTmWyZ0Onj6turP u5kDr5ip7V/9roIz4dDtyuvHVmx8dlLj7B1l+STrB6efRDtmVG9g/hDMIGKy0zUx8lvvaand 770fZZ5jSIp8YL0uTuqndHSU/ZqVCl45By+v77aWvBrSWdCvL/Jb68Hf7M9p9UosxRmJhlrM RcWJAGbLLaNeAgAA Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org From: Sean Paul Fix a bug where we check !dp->irq instead of the correct check for -ENXIO. Signed-off-by: Sean Paul Reviewed-by: Olof Johansson Signed-off-by: Jingoo Han --- drivers/video/exynos/exynos_dp_core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/video/exynos/exynos_dp_core.c b/drivers/video/exynos/exynos_dp_core.c index ee957e0..8ab95c3 100644 --- a/drivers/video/exynos/exynos_dp_core.c +++ b/drivers/video/exynos/exynos_dp_core.c @@ -920,7 +920,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"); return -ENODEV; }