diff options
| author | Patrick Mochel <mochel@osdl.org> | 2002-10-08 20:52:46 -0700 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2002-10-08 20:52:46 -0700 |
| commit | b134c4625b4450b95eaa6b067199a2bfec1976e4 (patch) | |
| tree | 6719208a627dc2158bb4fdedeacbd88eea2d9ab7 /include/linux | |
| parent | ca0e5f35dcf8e3d84b0784e98a7a5f9334b0f997 (diff) | |
IDE: register ide driver for all ide drives; not just for disk drives.
This adds
struct device_driver gen_driver;
to ide_driver_t, which is filled in with necessary fields when an ide
driver calls ide_register_driver(). That then registers the driver with
the driver model core.
As a result, this gives us the following output in driverfs:
# tree -d /sys/bus/ide/drivers/
/sys/bus/ide/drivers/
|-- ide-cdrom
`-- ide-disk
The suspend/resume callbacks in ide-disk.c have been temporarily
disabled until the ide core implements generic methods which forward
the calls to the drive drivers.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ide.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 419b0c92f6f5..44cb38c00b96 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h @@ -1200,6 +1200,7 @@ typedef struct ide_driver_s { int (*attach)(ide_drive_t *); void (*ata_prebuilder)(ide_drive_t *); void (*atapi_prebuilder)(ide_drive_t *); + struct device_driver gen_driver; struct list_head drives; struct list_head drivers; } ide_driver_t; |
