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 | |
parent | 22f0bf96de1506081a8b18ad3e0d04d5add70a4a (diff) | |
download | kernel_goldelico_gta04-d32386086b4a250bd71125f8d760cfffada0e422.zip kernel_goldelico_gta04-d32386086b4a250bd71125f8d760cfffada0e422.tar.gz kernel_goldelico_gta04-d32386086b4a250bd71125f8d760cfffada0e422.tar.bz2 |
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')
-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 84fecce..149a3b4 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; |