diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-24 16:53:19 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-24 16:53:19 -0400 |
commit | ef0b04276d8f719d754c092434fbd62c2aeb5307 (patch) | |
tree | 8e39ed4e4f35dcfcb83c0331a68d4e3a2deb823c /include/linux/ide.h | |
parent | 37525bebcfc15a1fe5a9cb50bf49b21bf43559c1 (diff) |
ide: add ide_pci_remove() helper
* Add 'unsigned long host_flags' field to struct ide_host.
* Set ->host_flags in ide_host_alloc_all().
* Always set PCI dev's ->driver_data in ide_pci_init_{one,two}().
* Add ide_pci_remove() helper (the default implementation for
struct pci_driver's ->remove method).
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 3eccac0a2a36..dbd0aeb3a56d 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -631,6 +631,7 @@ struct ide_host { | |||
631 | ide_hwif_t *ports[MAX_HWIFS]; | 631 | ide_hwif_t *ports[MAX_HWIFS]; |
632 | unsigned int n_ports; | 632 | unsigned int n_ports; |
633 | struct device *dev[2]; | 633 | struct device *dev[2]; |
634 | unsigned long host_flags; | ||
634 | void *host_priv; | 635 | void *host_priv; |
635 | }; | 636 | }; |
636 | 637 | ||
@@ -1213,6 +1214,7 @@ struct ide_port_info { | |||
1213 | int ide_pci_init_one(struct pci_dev *, const struct ide_port_info *, void *); | 1214 | int ide_pci_init_one(struct pci_dev *, const struct ide_port_info *, void *); |
1214 | int ide_pci_init_two(struct pci_dev *, struct pci_dev *, | 1215 | int ide_pci_init_two(struct pci_dev *, struct pci_dev *, |
1215 | const struct ide_port_info *, void *); | 1216 | const struct ide_port_info *, void *); |
1217 | void ide_pci_remove(struct pci_dev *); | ||
1216 | 1218 | ||
1217 | void ide_map_sg(ide_drive_t *, struct request *); | 1219 | void ide_map_sg(ide_drive_t *, struct request *); |
1218 | void ide_init_sg_cmd(ide_drive_t *, struct request *); | 1220 | void ide_init_sg_cmd(ide_drive_t *, struct request *); |