Skip to content

Commit

Permalink
NET: sa11x0-ir: set netdev's parent struct device
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King committed Feb 9, 2012
1 parent 22f0bf9 commit d323860
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/irda/sa1100_ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d323860

Please sign in to comment.