diff options
Diffstat (limited to 'drivers/net/jazzsonic.c')
-rw-r--r-- | drivers/net/jazzsonic.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/jazzsonic.c b/drivers/net/jazzsonic.c index d12106b47bf2..ec337b502fd9 100644 --- a/drivers/net/jazzsonic.c +++ b/drivers/net/jazzsonic.c | |||
@@ -108,7 +108,7 @@ static const struct net_device_ops sonic_netdev_ops = { | |||
108 | .ndo_set_mac_address = eth_mac_addr, | 108 | .ndo_set_mac_address = eth_mac_addr, |
109 | }; | 109 | }; |
110 | 110 | ||
111 | static int __init sonic_probe1(struct net_device *dev) | 111 | static int __devinit sonic_probe1(struct net_device *dev) |
112 | { | 112 | { |
113 | static unsigned version_printed; | 113 | static unsigned version_printed; |
114 | unsigned int silicon_revision; | 114 | unsigned int silicon_revision; |
@@ -211,7 +211,7 @@ out: | |||
211 | * Probe for a SONIC ethernet controller on a Mips Jazz board. | 211 | * Probe for a SONIC ethernet controller on a Mips Jazz board. |
212 | * Actually probing is superfluous but we're paranoid. | 212 | * Actually probing is superfluous but we're paranoid. |
213 | */ | 213 | */ |
214 | static int __init jazz_sonic_probe(struct platform_device *pdev) | 214 | static int __devinit jazz_sonic_probe(struct platform_device *pdev) |
215 | { | 215 | { |
216 | struct net_device *dev; | 216 | struct net_device *dev; |
217 | struct sonic_local *lp; | 217 | struct sonic_local *lp; |
@@ -229,6 +229,7 @@ static int __init jazz_sonic_probe(struct platform_device *pdev) | |||
229 | lp = netdev_priv(dev); | 229 | lp = netdev_priv(dev); |
230 | lp->device = &pdev->dev; | 230 | lp->device = &pdev->dev; |
231 | SET_NETDEV_DEV(dev, &pdev->dev); | 231 | SET_NETDEV_DEV(dev, &pdev->dev); |
232 | platform_set_drvdata(pdev, dev); | ||
232 | 233 | ||
233 | netdev_boot_setup_check(dev); | 234 | netdev_boot_setup_check(dev); |
234 | 235 | ||