projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
894cdbb
)
net: tsi108: use dev_get_platdata()
author
Jingoo Han
<
[email protected]
>
Fri, 30 Aug 2013 05:06:41 +0000
(14:06 +0900)
committer
David S. Miller
<
[email protected]
>
Fri, 30 Aug 2013 21:43:38 +0000
(17:43 -0400)
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 <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/tundra/tsi108_eth.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/tundra/tsi108_eth.c
b/drivers/net/ethernet/tundra/tsi108_eth.c
index f2e76c9d736cfe32e3b365bbb405f1d284aae6e8..c4dbf981804bbd7c22797c6b3718fef904cf23f3 100644
(file)
--- a/
drivers/net/ethernet/tundra/tsi108_eth.c
+++ b/
drivers/net/ethernet/tundra/tsi108_eth.c
@@
-1558,7
+1558,7
@@
tsi108_init_one(struct platform_device *pdev)
hw_info *einfo;
int err = 0;
- einfo =
pdev->dev.platform_data
;
+ einfo =
dev_get_platdata(&pdev->dev)
;
if (NULL == einfo) {
printk(KERN_ERR "tsi-eth %d: Missing additional data!\n",