diff options
Diffstat (limited to 'drivers/net/smc-mca.c')
-rw-r--r-- | drivers/net/smc-mca.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/smc-mca.c b/drivers/net/smc-mca.c index 8d36d40649ef..c791ef76c1d6 100644 --- a/drivers/net/smc-mca.c +++ b/drivers/net/smc-mca.c | |||
@@ -370,7 +370,7 @@ static int __init ultramca_probe(struct device *gen_dev) | |||
370 | 370 | ||
371 | outb(reg4, ioaddr + 4); | 371 | outb(reg4, ioaddr + 4); |
372 | 372 | ||
373 | gen_dev->driver_data = dev; | 373 | dev_set_drvdata(gen_dev, dev); |
374 | 374 | ||
375 | /* The 8390 isn't at the base address, so fake the offset | 375 | /* The 8390 isn't at the base address, so fake the offset |
376 | */ | 376 | */ |
@@ -531,7 +531,7 @@ static int ultramca_close_card(struct net_device *dev) | |||
531 | static int ultramca_remove(struct device *gen_dev) | 531 | static int ultramca_remove(struct device *gen_dev) |
532 | { | 532 | { |
533 | struct mca_device *mca_dev = to_mca_device(gen_dev); | 533 | struct mca_device *mca_dev = to_mca_device(gen_dev); |
534 | struct net_device *dev = (struct net_device *)gen_dev->driver_data; | 534 | struct net_device *dev = dev_get_drvdata(gen_dev); |
535 | 535 | ||
536 | if (dev) { | 536 | if (dev) { |
537 | /* NB: ultra_close_card() does free_irq */ | 537 | /* NB: ultra_close_card() does free_irq */ |