diff options
author | Finn Thain | 2009-07-21 12:21:49 -0700 |
---|---|---|
committer | David S. Miller | 2009-07-21 12:21:49 -0700 |
commit | 4564cba71637d3b4ea3730f5637b21a9eb3c8999 (patch) | |
tree | 1b33d48ab32e9b69c850e250eef27620c513c8a7 /drivers/net/jazzsonic.c | |
parent | 25177476675142d3ebd60849e0cebc46bd1eef8e (diff) |
macsonic, jazzsonic: fix oops on module unload
Set the driver data before using it. Fixes an oops when doing rmmod.
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/jazzsonic.c')
-rw-r--r-- | drivers/net/jazzsonic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/jazzsonic.c b/drivers/net/jazzsonic.c index d12106b47bf2..2f286091394d 100644 --- a/drivers/net/jazzsonic.c +++ b/drivers/net/jazzsonic.c @@ -229,6 +229,7 @@ static int __init jazz_sonic_probe(struct platform_device *pdev) lp = netdev_priv(dev); lp->device = &pdev->dev; SET_NETDEV_DEV(dev, &pdev->dev); + platform_set_drvdata(pdev, dev); netdev_boot_setup_check(dev); |