diff options
Diffstat (limited to 'drivers/parport')
-rw-r--r-- | drivers/parport/parport_gsc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/parport/parport_gsc.c b/drivers/parport/parport_gsc.c index ea31a452b153..5d6de380e42b 100644 --- a/drivers/parport/parport_gsc.c +++ b/drivers/parport/parport_gsc.c | |||
@@ -376,14 +376,14 @@ static int __devinit parport_init_chip(struct parisc_device *dev) | |||
376 | /* PARPORT_IRQ_NONE */ PARPORT_DMA_NONE, NULL); | 376 | /* PARPORT_IRQ_NONE */ PARPORT_DMA_NONE, NULL); |
377 | if (p) | 377 | if (p) |
378 | parport_count++; | 378 | parport_count++; |
379 | dev->dev.driver_data = p; | 379 | dev_set_drvdata(&dev->dev, p); |
380 | 380 | ||
381 | return 0; | 381 | return 0; |
382 | } | 382 | } |
383 | 383 | ||
384 | static int __devexit parport_remove_chip(struct parisc_device *dev) | 384 | static int __devexit parport_remove_chip(struct parisc_device *dev) |
385 | { | 385 | { |
386 | struct parport *p = dev->dev.driver_data; | 386 | struct parport *p = dev_get_drvdata(&dev->dev); |
387 | if (p) { | 387 | if (p) { |
388 | struct parport_gsc_private *priv = p->private_data; | 388 | struct parport_gsc_private *priv = p->private_data; |
389 | struct parport_operations *ops = p->ops; | 389 | struct parport_operations *ops = p->ops; |