diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-08 12:07:24 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-02-09 15:37:52 +0000 |
commit | d32386086b4a250bd71125f8d760cfffada0e422 (patch) | |
tree | 5eb84d5f692924bf8d7e5c3c1073f42b39afef57 /drivers/net/irda | |
parent | 22f0bf96de1506081a8b18ad3e0d04d5add70a4a (diff) | |
download | talos-obmc-linux-d32386086b4a250bd71125f8d760cfffada0e422.tar.gz talos-obmc-linux-d32386086b4a250bd71125f8d760cfffada0e422.zip |
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.c | 2 |
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; |