summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi_imx.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2009-12-13 01:02:09 -0700
committerGrant Likely <grant.likely@secretlab.ca>2009-12-13 01:02:09 -0700
commit980f3beeb68fd3b383908bac8a017b121df8ee29 (patch)
treed9e347b5a0bb029191116ce6c36ef1e89c03dbdd /drivers/spi/spi_imx.c
parent87f673e9ca468b98da5677cf43abdd09945f449d (diff)
downloadop-kernel-dev-980f3beeb68fd3b383908bac8a017b121df8ee29.zip
op-kernel-dev-980f3beeb68fd3b383908bac8a017b121df8ee29.tar.gz
spi-imx: don't access struct device directly but use dev_get_platdata
Also there is no casting needed to assign a void pointer. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/spi_imx.c')
-rw-r--r--drivers/spi/spi_imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c
index 4c9b133..e334747 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;
OpenPOWER on IntegriCloud