From: Russell King Date: Sun, 8 Jan 2012 12:07:24 +0000 (+0000) Subject: NET: sa11x0-ir: set netdev's parent struct device X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d32386086b4a250bd71125f8d760cfffada0e422;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 --- 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;