From patchwork Fri Nov 9 05:51:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 1718761 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 9791ADF264 for ; Fri, 9 Nov 2012 05:51:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750903Ab2KIFva (ORCPT ); Fri, 9 Nov 2012 00:51:30 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:29082 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750810Ab2KIFv3 (ORCPT ); Fri, 9 Nov 2012 00:51:29 -0500 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MD700BVJHLSEHP0@mailout3.samsung.com> for linux-fbdev@vger.kernel.org; Fri, 09 Nov 2012 14:51:28 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 0C.07.12699.0E99C905; Fri, 09 Nov 2012 14:51:28 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-13-509c99e0c679 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id BB.07.12699.0E99C905; Fri, 09 Nov 2012 14:51:28 +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 <0MD700AF6HLSSGA0@mmp2.samsung.com> for linux-fbdev@vger.kernel.org; Fri, 09 Nov 2012 14:51:28 +0900 (KST) From: Jingoo Han To: 'Florian Tobias Schandinat' Cc: linux-fbdev@vger.kernel.org, 'Sean Paul' , 'Jingoo Han' References: In-reply-to: Subject: [PATCH v4 5/8] video: exynos_dp: Fix bug when checking dp->irq Date: Fri, 09 Nov 2012 14:51:27 +0900 Message-id: <001d01cdbe3e$42ecd700$c8c68500$%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: Ac2+Pd0+5OZ6ri/CQOacII/BjUUEfAAAE7GQ Content-language: ko x-cr-hashedpuzzle: Hv9r I0w5 Kh4n O8KL Uk27 W6nt Ysx3 ZYsj aFEU aeBf dkLn gn5o mRWA pFEl vGtM wwOd; 4; ZgBsAG8AcgBpAGEAbgBzAGMAaABhAG4AZABpAG4AYQB0AEAAZwBtAHgALgBkAGUAOwBqAGcAMQAuAGgAYQBuAEAAcwBhAG0AcwB1AG4AZwAuAGMAbwBtADsAbABpAG4AdQB4AC0AZgBiAGQAZQB2AEAAdgBnAGUAcgAuAGsAZQByAG4AZQBsAC4AbwByAGcAOwBzAGUAYQBuAHAAYQB1AGwAQABjAGgAcgBvAG0AaQB1AG0ALgBvAHIAZwA=; Sosha1_v1; 7; {5C296176-3B2A-4CC9-AA3B-36603406DABD}; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=; Fri, 09 Nov 2012 05:51:20 GMT; WwBQAEEAVABDAEgAIAB2ADQAIAA1AC8AOABdACAAdgBpAGQAZQBvADoAIABlAHgAeQBuAG8AcwBfAGQAcAA6ACAARgBpAHgAIABiAHUAZwAgAHcAaABlAG4AIABjAGgAZQBjAGsAaQBuAGcAIABkAHAALQA+AGkAcgBxAA== x-cr-puzzleid: {5C296176-3B2A-4CC9-AA3B-36603406DABD} DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDI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 8RJrFyMnh4SAicSmxh3MELaYxIV769m6GLk4hASmM0q8mPabCcKZxSSx5PEpFpAqNgE1iS9f DrN3MXJwiAhYSWzaqgliMgtkSZw+pgBiCglwS6xuDgIp5hTgkVj3pxNsvLCAu8SdVZ1gQ1gE VCWOffzJBGLzCthK3Ns0ixHCFpT4MfkeWA2zgJbE+p3HmSBseYnNa94yg4yXEFCXePRXFyQs ImAk8e3PQ6gSEYl9L94xghwsITCDVeLjqW9QL5pKLH74nnECo8gsJCtmIVkxC8mKWUhmLWBk WcUomlqQXFCclJ5rpFecmFtcmpeul5yfu4kRHOXPpHcwrmqwOMQowMGoxMOb+GB2gBBrYllx Ze4hRgkOZiUR3rmZcwKEeFMSK6tSi/Lji0pzUosPMfoAQ2Ais5Rocj4wAeWVxBsam5gZWRqZ WRiZmJvjEFYS5232SAkQEkhPLEnNTk0tSC2CGcfEwSnVwCj2b9L9AoM7cd8OMb6ZIp/dtYX5 6ZG4VEF5vnKO63MLpU+cb2tiL6/rcrY894l/X0J5QfvmN0Weu9QS8k+LqhiWT/9YsuiCQNfR +ga3SfOZ7L+HfZ7xLqzJc2F6d/7FvfPePuz8oTUv5G/Qg9dex379LTwurF+yVklgypcY09tP 2rfcKrkstlKJpTgj0VCLuag4EQAOeo2cHwMAAA== X-CFilter-Loop: Reflected 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 4a6ed2f..be3df15 100644 --- a/drivers/video/exynos/exynos_dp_core.c +++ b/drivers/video/exynos/exynos_dp_core.c @@ -883,7 +883,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; }