From patchwork Tue Dec 8 21:14:10 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 65761 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB8LEiRt020268 for ; Tue, 8 Dec 2009 21:14:45 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NI7OO-0005FJ-Py; Tue, 08 Dec 2009 21:14:44 +0000 Received: from sfi-mx-2.v28.ch3.sourceforge.com ([172.29.28.122] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NI7OO-0005FE-9F for spi-devel-general@lists.sourceforge.net; Tue, 08 Dec 2009 21:14:44 +0000 X-ACL-Warn: Received: from metis.ext.pengutronix.de ([92.198.50.35]) by sfi-mx-2.v28.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1NI7OH-000108-O6 for spi-devel-general@lists.sourceforge.net; Tue, 08 Dec 2009 21:14:44 +0000 Received: from octopus.hi.pengutronix.de ([2001:6f8:1178:2:215:17ff:fe12:23b0]) by metis.ext.pengutronix.de with esmtp (Exim 4.69) (envelope-from ) id 1NI7O3-000567-FM; Tue, 08 Dec 2009 22:14:23 +0100 Received: from ukl by octopus.hi.pengutronix.de with local (Exim 4.69) (envelope-from ) id 1NI7O3-0003tr-AH; Tue, 08 Dec 2009 22:14:23 +0100 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: spi-devel-general@lists.sourceforge.net Date: Tue, 8 Dec 2009 22:14:10 +0100 Message-Id: <1260306850-14945-5-git-send-email-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 1.6.5.2 In-Reply-To: <1260306850-14945-4-git-send-email-u.kleine-koenig@pengutronix.de> References: <20091208211258.GA13706@pengutronix.de> <1260306850-14945-1-git-send-email-u.kleine-koenig@pengutronix.de> <1260306850-14945-2-git-send-email-u.kleine-koenig@pengutronix.de> <1260306850-14945-3-git-send-email-u.kleine-koenig@pengutronix.de> <1260306850-14945-4-git-send-email-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:6f8:1178:2:215:17ff:fe12:23b0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: spi-devel-general@lists.sourceforge.net X-Spam-Score: -1.8 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.8 AWL AWL: From: address is in the auto white-list X-Headers-End: 1NI7OH-000108-O6 Cc: David Brownell , linux-kernel@vger.kernel.org, Daniel Mack , Andrew Morton , linux-arm-kernel@lists.infradead.org Subject: [spi-devel-general] [PATCH 5/5] spi-imx: don't access struct device directly but use dev_get_platdata X-BeenThere: spi-devel-general@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux SPI core/device drivers discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces@lists.sourceforge.net diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c index 59b3a30..ea6d701 100644 --- a/drivers/spi/spi_imx.c +++ b/drivers/spi/spi_imx.c @@ -492,7 +492,7 @@ static int __init spi_imx_probe(struct platform_device *pdev) struct resource *res; int i, ret; - mxc_platform_info = (struct spi_imx_master *)pdev->dev.platform_data; + mxc_platform_info = dev_get_platdata(&pdev->dev); if (!mxc_platform_info) { dev_err(&pdev->dev, "can't get the platform data\n"); return -EINVAL;