Message ID | 001601ceb364$3ecbacc0$bc630640$%han@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-fbdev-owner@kernel.org> X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 39BF3BFF05 for <patchwork-linux-fbdev@patchwork.kernel.org>; Tue, 17 Sep 2013 05:10:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6C6C92022D for <patchwork-linux-fbdev@patchwork.kernel.org>; Tue, 17 Sep 2013 05:10:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9D2CF201B9 for <patchwork-linux-fbdev@patchwork.kernel.org>; Tue, 17 Sep 2013 05:10:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751732Ab3IQFKj (ORCPT <rfc822;patchwork-linux-fbdev@patchwork.kernel.org>); Tue, 17 Sep 2013 01:10:39 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:60642 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751660Ab3IQFKi (ORCPT <rfc822;linux-fbdev@vger.kernel.org>); Tue, 17 Sep 2013 01:10:38 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MT900EKF7PG32N0@mailout1.samsung.com> for linux-fbdev@vger.kernel.org; Tue, 17 Sep 2013 14:10:37 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 69.DA.29948.D44E7325; Tue, 17 Sep 2013 14:10:37 +0900 (KST) X-AuditID: cbfee691-b7f4a6d0000074fc-55-5237e44d2a00 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 6F.03.05832.D44E7325; Tue, 17 Sep 2013 14:10:37 +0900 (KST) Received: from DOJG1HAN03 ([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 <0MT900FPQ7PPVW40@mmp2.samsung.com>; Tue, 17 Sep 2013 14:10:37 +0900 (KST) From: Jingoo Han <jg1.han@samsung.com> To: 'Tomi Valkeinen' <tomi.valkeinen@ti.com> Cc: 'Jean-Christophe PLAGNIOL-VILLARD' <plagnioj@jcrosoft.com>, linux-fbdev@vger.kernel.org, 'Jingoo Han' <jg1.han@samsung.com> References: <000401ceb361$d84c4600$88e4d200$%han@samsung.com> In-reply-to: <000401ceb361$d84c4600$88e4d200$%han@samsung.com> Subject: [PATCH 16/19] video: s3c-fb: use dev_get_platdata() Date: Tue, 17 Sep 2013 14:10:37 +0900 Message-id: <001601ceb364$3ecbacc0$bc630640$%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: Ac6zYdQuTiueM9xuSEGq26qTfKM1MwAAlvDw Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLIsWRmVeSWpSXmKPExsVy+t8zY13fJ+ZBBmfXS1lcXniJ1eJE3wdW i3UPXzBZrJ9/i82BxePVhTssHn1bVjF6HL+xncnj8ya5AJYoLpuU1JzMstQifbsEroy9X9+y F/xhrdj34DtLA+Mnli5GTg4JAROJax8nMELYYhIX7q1n62Lk4hASWMYocWDrOSCHA6xo2n8p kBohgemMEkcWZ0LU/GKUuHGjH6yZTUBN4suXw+wgtoiAjsSkRT3MIEXMAo2MEi3dz1khum0l Zr+4CraZU8BOYv+EuWC2sIC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6rpFecWJucWleul5yfu4mRnDMP5PewbiqweIQowAHoxIP 7wwp8yAh1sSy4srcQ4wSHMxKIrxhukAh3pTEyqrUovz4otKc1OJDjMlAj05klhJNzgemo7yS eENjEzMjSyMzCyMTc3PShJXEeQ+2WgcKCaQnlqRmp6YWpBbBbGHi4JRqYKytlwt7+suiUuXH 9bBDVTNOGLtVq22+51Z84uHMnl281/UqFD/wu7mUm7z93CabvFve4i6n+xy/Ly2mYqJ3qtoY l725ZaT6WJz/h9yhr0dyFwhd2RQfOKd13yUmTv6yFU+Zu+XcrbtEhbLL9/AteH969ZZ9lqva inY8LjntzDTx3vOdPxXUupVYijMSDbWYi4oTAaKWz1Q9AwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: <linux-fbdev.vger.kernel.org> X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 |
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c index 2e7991c..62acae2 100644 --- a/drivers/video/s3c-fb.c +++ b/drivers/video/s3c-fb.c @@ -1378,7 +1378,7 @@ static int s3c_fb_probe(struct platform_device *pdev) return -EINVAL; } - pd = pdev->dev.platform_data; + pd = dev_get_platdata(&pdev->dev); if (!pd) { dev_err(dev, "no platform data specified\n"); return -EINVAL;
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. This is a cosmetic change to make the code simpler and enhance the readability. Signed-off-by: Jingoo Han <jg1.han@samsung.com> --- drivers/video/s3c-fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)