summaryrefslogtreecommitdiff
path: root/drivers/net/irda
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-01-08 16:07:24 +0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-02-09 19:37:52 +0400
commitd32386086b4a250bd71125f8d760cfffada0e422 (patch)
tree5eb84d5f692924bf8d7e5c3c1073f42b39afef57 /drivers/net/irda
parent22f0bf96de1506081a8b18ad3e0d04d5add70a4a (diff)
downloadlinux-d32386086b4a250bd71125f8d760cfffada0e422.tar.xz
NET: sa11x0-ir: set netdev's parent struct device
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>
Diffstat (limited to 'drivers/net/irda')
-rw-r--r--drivers/net/irda/sa1100_ir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/irda/sa1100_ir.c b/drivers/net/irda/sa1100_ir.c
index 84fecce078f6..149a3b4aaecc 100644
--- 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;