diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-10 04:42:53 -0400 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2013-09-21 09:43:15 -0400 |
commit | c58bd858087960a3d11df884f8f92cc36343c069 (patch) | |
tree | a4fafd4eddef8e0a001881116371ac3bd9969299 /drivers/net/can | |
parent | ecd78d97532bcc8422ed6900c9a3f19537ce860f (diff) |
can: softing: 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')
-rw-r--r-- | drivers/net/can/softing/softing_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/softing/softing_main.c b/drivers/net/can/softing/softing_main.c index 65eef1eea2e2..6cd5c01b624d 100644 --- a/drivers/net/can/softing/softing_main.c +++ b/drivers/net/can/softing/softing_main.c | |||
@@ -768,7 +768,7 @@ static int softing_pdev_remove(struct platform_device *pdev) | |||
768 | 768 | ||
769 | static int softing_pdev_probe(struct platform_device *pdev) | 769 | static int softing_pdev_probe(struct platform_device *pdev) |
770 | { | 770 | { |
771 | const struct softing_platform_data *pdat = pdev->dev.platform_data; | 771 | const struct softing_platform_data *pdat = dev_get_platdata(&pdev->dev); |
772 | struct softing *card; | 772 | struct softing *card; |
773 | struct net_device *netdev; | 773 | struct net_device *netdev; |
774 | struct softing_priv *priv; | 774 | struct softing_priv *priv; |