diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-10 12:41:59 +0400 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2013-09-21 17:43:14 +0400 |
commit | c91a319c58e23b0b0a582c2d7824219d1120a92d (patch) | |
tree | 6a542f9d7bf185e42680914da2008068bb0b0f18 /drivers | |
parent | 84ae6643d8bd2d6c9a4e313212bfe68e0abcab3f (diff) | |
download | linux-c91a319c58e23b0b0a582c2d7824219d1120a92d.tar.xz |
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')
-rw-r--r-- | drivers/net/can/janz-ican3.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |