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:
d94a014
)
net: irda: pxaficp_ir: use platform_set_drvdata()
author
Libo Chen
<
[email protected]
>
Wed, 21 Aug 2013 10:15:11 +0000
(18:15 +0800)
committer
David S. Miller
<
[email protected]
>
Thu, 22 Aug 2013 03:51:10 +0000
(20:51 -0700)
Use the wrapper functions for getting and setting the driver data using
platform_device instead of using deva_set_drvdata() with &pdev->dev,
so we can directly pass a struct platform_device.
Signed-off-by: Libo Chen <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/irda/pxaficp_ir.c
patch
|
blob
|
history
diff --git
a/drivers/net/irda/pxaficp_ir.c
b/drivers/net/irda/pxaficp_ir.c
index 964b116a0ab79ad79120c4d537cdb5701e000152..3eeaaf8004949f28f5a1aead38665a56bedc557e 100644
(file)
--- a/
drivers/net/irda/pxaficp_ir.c
+++ b/
drivers/net/irda/pxaficp_ir.c
@@
-915,7
+915,7
@@
static int pxa_irda_probe(struct platform_device *pdev)
err = register_netdev(dev);
if (err == 0)
-
dev_set_drvdata(&pdev->
dev, dev);
+
platform_set_drvdata(p
dev, dev);
if (err) {
if (si->pdata->shutdown)