From patchwork Tue Sep 17 05:09:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2900791 Return-Path: X-Original-To: patchwork-linux-fbdev@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 974289F1E3 for ; Tue, 17 Sep 2013 05:09:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CDC292022D for ; Tue, 17 Sep 2013 05:09:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0D512201B9 for ; Tue, 17 Sep 2013 05:09:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751553Ab3IQFJj (ORCPT ); Tue, 17 Sep 2013 01:09:39 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:56494 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751456Ab3IQFJj (ORCPT ); Tue, 17 Sep 2013 01:09:39 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MT900DMK7MF9Q20@mailout4.samsung.com> for linux-fbdev@vger.kernel.org; Tue, 17 Sep 2013 14:09:37 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.48]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 7B.E6.20109.114E7325; Tue, 17 Sep 2013 14:09:37 +0900 (KST) X-AuditID: cbfee68f-b7f1e6d000004e8d-6d-5237e411da40 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id E5.C2.05832.114E7325; Tue, 17 Sep 2013 14:09:37 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MT9001397O1MX10@mmp1.samsung.com>; Tue, 17 Sep 2013 14:09:37 +0900 (KST) From: Jingoo Han To: 'Tomi Valkeinen' Cc: 'Jean-Christophe PLAGNIOL-VILLARD' , linux-fbdev@vger.kernel.org, 'Jingoo Han' References: <000401ceb361$d84c4600$88e4d200$%han@samsung.com> In-reply-to: <000401ceb361$d84c4600$88e4d200$%han@samsung.com> Subject: [PATCH 14/19] video: mbxfb: use dev_get_platdata() Date: Tue, 17 Sep 2013 14:09:37 +0900 Message-id: <001401ceb364$1b387770$51a96650$%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: Ac6zYdQuTiueM9xuSEGq26qTfKM1MwAAizIQ Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFIsWRmVeSWpSXmKPExsVy+t8zA13BJ+ZBBtNW6FtcXniJ1eJE3wdW i3UPXzBZrJ9/i82BxePVhTssHn1bVjF6HL+xncnj8ya5AJYoLpuU1JzMstQifbsEroyORatY CpayVfxuKWtgnMvaxcjBISFgIvFpsXkXIyeQKSZx4d56NhBbSGAZo8TWnRUQcROJZWuWQMUX MUrM+pnQxcgFZP9ilLh2+QozSIJNQE3iy5fD7CC2iICOxKRFPcwgRcwCjYwSLd3PWSG6bSVm v7jKAmJzCthJ7J8wF8wWFrCWODqvEayZRUBVYteaM2BDeYHqd26czwRhC0r8mHwPrJ5ZQEti /c7jTBC2vMTmNW+ZIZ5Rl3j0VxfiBiOJfY8aoUpEJPa9eMcI8cwxdok9W5IgVglIfJt8iAWi VVZi0wFmiBJJiYMrbrBMAPoUyeJZSBbPQrJ4FpINCxhZ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x7V6etdJ+h8XbHpRWnKk3nuYwh2XaccHsc5ecNCqeCosentmi8njL yx/Rf6dU59n+WNaoPKnY9s/dmHVqjjq5VnsaVB/P17t2I6Av5Pc6p7vmllIN9ZJHtzBPTDFr MZy4+zdT+dS3UfvYlViKMxINtZiLihMBdcapFT0DAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: 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 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 --- drivers/video/mbx/mbxfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/mbx/mbxfb.c b/drivers/video/mbx/mbxfb.c index 0c1a874..f87c4ef 100644 --- a/drivers/video/mbx/mbxfb.c +++ b/drivers/video/mbx/mbxfb.c @@ -890,7 +890,7 @@ static int mbxfb_probe(struct platform_device *dev) dev_dbg(&dev->dev, "mbxfb_probe\n"); - pdata = dev->dev.platform_data; + pdata = dev_get_platdata(&dev->dev); if (!pdata) { dev_err(&dev->dev, "platform data is required\n"); return -EINVAL;