From: Jingoo Han Date: Tue, 10 Sep 2013 08:41:59 +0000 (+0900) Subject: can: janz-ican3: use dev_get_platdata() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c91a319c58e23b0b0a582c2d7824219d1120a92d;p=openwrt%2Fstaging%2Fblogic.git can: janz-ican3: use dev_get_platdata() 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 Signed-off-by: Marc Kleine-Budde --- diff --git a/drivers/net/can/janz-ican3.c b/drivers/net/can/janz-ican3.c index 36bd6fa1c7f3..ab5909a7bae9 100644 --- a/drivers/net/can/janz-ican3.c +++ b/drivers/net/can/janz-ican3.c @@ -1769,7 +1769,7 @@ static int ican3_probe(struct platform_device *pdev) struct device *dev; int ret; - pdata = pdev->dev.platform_data; + pdata = dev_get_platdata(&pdev->dev); if (!pdata) return -ENXIO;