]> err.no Git - linux-2.6/commit
[PATCH] convert IDE device drivers to driver-model
authorBartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Thu, 26 May 2005 12:55:34 +0000 (14:55 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Thu, 26 May 2005 12:55:34 +0000 (14:55 +0200)
commit8604affde9d4f52f04342d6a37c77d95fa167e7a
tree12143c1be244c69c7c2b488a34856f60d0625e03
parentbef9c558841604116704e10b3d9ff3dbf4939423
[PATCH] convert IDE device drivers to driver-model

* add ide_bus_match() and export ide_bus_type
* split ide_remove_driver_from_hwgroup() out of ide_unregister()
* move device cleanup from ide_unregister() to drive_release_dev()
* convert ide_driver_t->name to driver->name
* convert ide_driver_t->{attach,cleanup} to driver->{probe,remove}
* remove ide_driver_t->busy as ide_bus_type->subsys.rwsem
  protects against concurrent ->{probe,remove} calls
* make ide_{un}register_driver() void as it cannot fail now
* use driver_{un}register() directly, remove ide_{un}register_driver()
* use device_register() instead of ata_attach(), remove ata_attach()
* add proc_print_driver() and ide_drivers_show(), remove ide_drivers_op
* fix ide_replace_subdriver() and move it to ide-proc.c
* remove ide_driver_t->drives, ide_drives and drives_lock
* remove ide_driver_t->drivers, drivers and drivers_lock
* remove ide_drive_t->driver and DRIVER() macro

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
drivers/ide/ide-cd.c
drivers/ide/ide-disk.c
drivers/ide/ide-floppy.c
drivers/ide/ide-probe.c
drivers/ide/ide-proc.c
drivers/ide/ide-tape.c
drivers/ide/ide.c
drivers/scsi/ide-scsi.c
include/linux/ide.h