From patchwork Tue Oct 22 10:11:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Sharma X-Patchwork-Id: 3086861 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F33AC9F2B7 for ; Wed, 23 Oct 2013 08:39:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EA033202C1 for ; Wed, 23 Oct 2013 08:39:34 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id C3449202BE for ; Wed, 23 Oct 2013 08:39:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B91EAE7350 for ; Wed, 23 Oct 2013 01:39:33 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 6E2D5E6810 for ; Tue, 22 Oct 2013 02:51:00 -0700 (PDT) Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MV2003I3DZWTOZ0@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Tue, 22 Oct 2013 18:50:59 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.123]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 9C.13.07242.E7A46625; Tue, 22 Oct 2013 18:50:54 +0900 (KST) X-AuditID: cbfee690-b7f3d6d000001c4a-da-52664a7e1968 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 11.2F.09687.E7A46625; Tue, 22 Oct 2013 18:50:54 +0900 (KST) Received: from chromeserver-PowerEdge-T410.sisodomain.com ([107.108.73.106]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MV2003SXE0AWV00@mmp1.samsung.com>; Tue, 22 Oct 2013 18:50:54 +0900 (KST) From: Rahul Sharma To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v2 5/7] exynos/drm: fix ddc i2c device probe failure Date: Tue, 22 Oct 2013 15:41:06 +0530 Message-id: <1382436668-15813-6-git-send-email-rahul.sharma@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1382436668-15813-1-git-send-email-rahul.sharma@samsung.com> References: <1382436668-15813-1-git-send-email-rahul.sharma@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJIsWRmVeSWpSXmKPExsWyRsSkWrfZKy3IYNMrKYv5R86xWlz5+p7N YtL9CSwW33d9YbfoXXCVzWLT42usFjPO72OyWPgi3mLKosOsFofftLNa3N1wltFixuSXbBar dv1hdOD1mN1wkcVj56y77B73u48zeWxeUu/Rt2UVo8fnTXIBbFFcNimpOZllqUX6dglcGZf/ dbIWnGKv2N3Ry97AOJGti5GTQ0LAROLB9q/sELaYxIV764HiXBxCAksZJS6c7GOGKVpxbikr RGIRo8SceZfYIZzZTBJLHi0FG8UmoCsx++AzRhBbRKCLUeJgJwtIEbPAI0aJHY/2gI0SFnCR eHkdJMHJwSKgKjF943OwZl4BD4mzSxazQKxTlOh+NgEszingKXH57CGwuBBQza9rv8CGSgic YpeYu+UWE8QgAYlvk0GKOIASshKbDkCdLSlxcMUNlgmMwgsYGVYxiqYWJBcUJ6UXmegVJ+YW l+al6yXn525iBEbL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Vj4txbfccJtcuWqcboNNsOnqv2937LjI6vD7 tJrj1g+bHe4WXLRYyDlvmta7ait2tW6Z+p1l/xpmnnY3TLx2SenvP6GpqbPdXincYO5s3bqV +cZ0UVZL1TSDf72S1rp5nUosxRmJhlrMRcWJAJ3RanYJAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Mailman-Approved-At: Wed, 23 Oct 2013 01:32:23 -0700 Cc: kgene.kim@samsung.com, sw0312.kim@samsung.com, joshi@samsung.com, s.nawrocki@samsung.com, Rahul Sharma X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Exynos hdmi ddc is a I2C device and if we register hdmi ddc driver with id_table as NULL, cause failure in probing. id_table field should not be NULL for i2c_driver registeration. Signed-off-by: Rahul Sharma --- drivers/gpu/drm/exynos/exynos_ddc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos_ddc.c b/drivers/gpu/drm/exynos/exynos_ddc.c index 6a8c84e..54ead55 100644 --- a/drivers/gpu/drm/exynos/exynos_ddc.c +++ b/drivers/gpu/drm/exynos/exynos_ddc.c @@ -51,12 +51,17 @@ static struct of_device_id hdmiddc_match_types[] = { } }; +static struct i2c_device_id ddc_idtable[] = { + { }, +}; + struct i2c_driver ddc_driver = { .driver = { .name = "exynos-hdmiddc", .owner = THIS_MODULE, .of_match_table = hdmiddc_match_types, }, + .id_table = ddc_idtable, .probe = s5p_ddc_probe, .remove = s5p_ddc_remove, .command = NULL,