aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-17 18:46:22 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-17 18:46:22 -0400
commit5b0c4b30a625927340a3e7f565aa4de8b60489cc (patch)
treeeb1dabd30fa6dd6c2ce45bbe59da9cf4cc6adc57 /include
parentc7f6f21aaeb826a9b04b5897a92f29226995170f (diff)
ide: remove IDE devices from /proc/ide/ before unregistering them
IDE devices need to be removed from /proc/ide/ _before_ being unregistered: * Drop 'ide_hwif_t *hwif' argument from destroy_proc_ide_device() and use drive->hwif instead. * Rename destroy_proc_ide_device() to ide_proc_unregister_device(). * Call ide_proc_unregister_device() in drive_release_dev(). * Remove no longer needed destroy_proc_ide_drives(). Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ide.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 1b423958a894..f9449ecd79d9 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -690,6 +690,7 @@ void proc_ide_create(void);
690void proc_ide_destroy(void); 690void proc_ide_destroy(void);
691void ide_proc_register_port(ide_hwif_t *); 691void ide_proc_register_port(ide_hwif_t *);
692void ide_proc_port_register_devices(ide_hwif_t *); 692void ide_proc_port_register_devices(ide_hwif_t *);
693void ide_proc_unregister_device(ide_drive_t *);
693void ide_proc_unregister_port(ide_hwif_t *); 694void ide_proc_unregister_port(ide_hwif_t *);
694void ide_proc_register_driver(ide_drive_t *, ide_driver_t *); 695void ide_proc_register_driver(ide_drive_t *, ide_driver_t *);
695void ide_proc_unregister_driver(ide_drive_t *, ide_driver_t *); 696void ide_proc_unregister_driver(ide_drive_t *, ide_driver_t *);
@@ -723,6 +724,7 @@ static inline void proc_ide_create(void) { ; }
723static inline void proc_ide_destroy(void) { ; } 724static inline void proc_ide_destroy(void) { ; }
724static inline void ide_proc_register_port(ide_hwif_t *hwif) { ; } 725static inline void ide_proc_register_port(ide_hwif_t *hwif) { ; }
725static inline void ide_proc_port_register_devices(ide_hwif_t *hwif) { ; } 726static inline void ide_proc_port_register_devices(ide_hwif_t *hwif) { ; }
727static inline void ide_proc_unregister_device(ide_drive_t *drive) { ; }
726static inline void ide_proc_unregister_port(ide_hwif_t *hwif) { ; } 728static inline void ide_proc_unregister_port(ide_hwif_t *hwif) { ; }
727static inline void ide_proc_register_driver(ide_drive_t *drive, ide_driver_t *driver) { ; } 729static inline void ide_proc_register_driver(ide_drive_t *drive, ide_driver_t *driver) { ; }
728static inline void ide_proc_unregister_driver(ide_drive_t *drive, ide_driver_t *driver) { ; } 730static inline void ide_proc_unregister_driver(ide_drive_t *drive, ide_driver_t *driver) { ; }