Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3238608 authored by Russell King's avatar Russell King
Browse files

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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 22f0bf96
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -919,6 +919,8 @@ static int sa1100_irda_probe(struct platform_device *pdev)
	if (!dev)
	if (!dev)
		goto err_mem_4;
		goto err_mem_4;


	SET_NETDEV_DEV(dev, &pdev->dev);

	si = netdev_priv(dev);
	si = netdev_priv(dev);
	si->dev = &pdev->dev;
	si->dev = &pdev->dev;
	si->pdata = pdev->dev.platform_data;
	si->pdata = pdev->dev.platform_data;