From: Jingoo Han Subject: [PATCH 9/9] can: ti_hecc: use dev_get_platdata() Date: Tue, 10 Sep 2013 17:43:12 +0900 Message-ID: <005001ceae01$c8d69730$5a83c590$%han@samsung.com> References: <004701ceae01$4303dcd0$c90b9670$%han@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailout4.samsung.com ([203.254.224.34]:34044 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754768Ab3IJInW (ORCPT ); Tue, 10 Sep 2013 04:43:22 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MSW00HWGIW0SIM0@mailout4.samsung.com> for linux-can@vger.kernel.org; Tue, 10 Sep 2013 17:43:16 +0900 (KST) In-reply-to: <004701ceae01$4303dcd0$c90b9670$%han@samsung.com> Content-language: ko Sender: linux-can-owner@vger.kernel.org List-ID: To: 'Marc Kleine-Budde' Cc: 'Wolfgang Grandegger' , linux-can@vger.kernel.org, 'Jingoo Han' 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/net/can/ti_hecc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/can/ti_hecc.c b/drivers/net/can/ti_hecc.c index 3a349a2..beb5ef8 100644 --- a/drivers/net/can/ti_hecc.c +++ b/drivers/net/can/ti_hecc.c @@ -894,7 +894,7 @@ static int ti_hecc_probe(struct platform_device *pdev) void __iomem *addr; int err = -ENODEV; - pdata = pdev->dev.platform_data; + pdata = dev_get_platdata(&pdev->dev); if (!pdata) { dev_err(&pdev->dev, "No platform data\n"); goto probe_exit; -- 1.7.10.4