projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22f0bf9
)
NET: sa11x0-ir: set netdev's parent struct device
author
Russell King
<rmk+kernel@arm.linux.org.uk>
Sun, 8 Jan 2012 12:07:24 +0000
(12:07 +0000)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Thu, 9 Feb 2012 15:37:52 +0000
(15:37 +0000)
Add the missing SET_NETDEV_DEV() call to set the parent device
correctly for this network interface.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/net/irda/sa1100_ir.c
patch
|
blob
|
history
diff --git
a/drivers/net/irda/sa1100_ir.c
b/drivers/net/irda/sa1100_ir.c
index 84fecce078f6c5b75fe33fb60b6eae502ebd0e3e..149a3b4aaeccf08bfb78b84682635833a35d5b0f 100644
(file)
--- a/
drivers/net/irda/sa1100_ir.c
+++ b/
drivers/net/irda/sa1100_ir.c
@@
-919,6
+919,8
@@
static int sa1100_irda_probe(struct platform_device *pdev)
if (!dev)
goto err_mem_4;
+ SET_NETDEV_DEV(dev, &pdev->dev);
+
si = netdev_priv(dev);
si->dev = &pdev->dev;
si->pdata = pdev->dev.platform_data;