aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/can/janz-ican3.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-10 17:41:59 +0900
committerMarc Kleine-Budde <mkl@pengutronix.de>2013-09-21 15:43:14 +0200
commitc91a319c58e23b0b0a582c2d7824219d1120a92d (patch)
tree6a542f9d7bf185e42680914da2008068bb0b0f18 /drivers/net/can/janz-ican3.c
parent84ae6643d8bd2d6c9a4e313212bfe68e0abcab3f (diff)
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 <jg1.han@samsung.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/janz-ican3.c')
-rw-r--r--drivers/net/can/janz-ican3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/janz-ican3.c b/drivers/net/can/janz-ican3.c
index 36bd6fa1c7f..ab5909a7bae 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;