aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide.c')
-rw-r--r--drivers/ide/ide.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c
index c1bb0f6784a9..6971c285a212 100644
--- a/drivers/ide/ide.c
+++ b/drivers/ide/ide.c
@@ -281,7 +281,7 @@ static int ide_uevent(struct device *dev, struct kobj_uevent_env *env)
281static int generic_ide_probe(struct device *dev) 281static int generic_ide_probe(struct device *dev)
282{ 282{
283 ide_drive_t *drive = to_ide_device(dev); 283 ide_drive_t *drive = to_ide_device(dev);
284 ide_driver_t *drv = to_ide_driver(dev->driver); 284 struct ide_driver *drv = to_ide_driver(dev->driver);
285 285
286 return drv->probe ? drv->probe(drive) : -ENODEV; 286 return drv->probe ? drv->probe(drive) : -ENODEV;
287} 287}
@@ -289,7 +289,7 @@ static int generic_ide_probe(struct device *dev)
289static int generic_ide_remove(struct device *dev) 289static int generic_ide_remove(struct device *dev)
290{ 290{
291 ide_drive_t *drive = to_ide_device(dev); 291 ide_drive_t *drive = to_ide_device(dev);
292 ide_driver_t *drv = to_ide_driver(dev->driver); 292 struct ide_driver *drv = to_ide_driver(dev->driver);
293 293
294 if (drv->remove) 294 if (drv->remove)
295 drv->remove(drive); 295 drv->remove(drive);
@@ -300,7 +300,7 @@ static int generic_ide_remove(struct device *dev)
300static void generic_ide_shutdown(struct device *dev) 300static void generic_ide_shutdown(struct device *dev)
301{ 301{
302 ide_drive_t *drive = to_ide_device(dev); 302 ide_drive_t *drive = to_ide_device(dev);
303 ide_driver_t *drv = to_ide_driver(dev->driver); 303 struct ide_driver *drv = to_ide_driver(dev->driver);
304 304
305 if (dev->driver && drv->shutdown) 305 if (dev->driver && drv->shutdown)
306 drv->shutdown(drive); 306 drv->shutdown(drive);