summaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-probe.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz2008-07-24 22:53:19 +0200
committerBartlomiej Zolnierkiewicz2008-07-24 22:53:19 +0200
commitef0b04276d8f719d754c092434fbd62c2aeb5307 (patch)
tree8e39ed4e4f35dcfcb83c0331a68d4e3a2deb823c /drivers/ide/ide-probe.c
parentvia82cxxx: cleanup ->init_chipset method (diff)
downloadkernel-qcow2-linux-ef0b04276d8f719d754c092434fbd62c2aeb5307.tar.gz
kernel-qcow2-linux-ef0b04276d8f719d754c092434fbd62c2aeb5307.tar.xz
kernel-qcow2-linux-ef0b04276d8f719d754c092434fbd62c2aeb5307.zip
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 'drivers/ide/ide-probe.c')
-rw-r--r--drivers/ide/ide-probe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c
index 9ab5892eaea1..f0c162488ec4 100644
--- a/drivers/ide/ide-probe.c
+++ b/drivers/ide/ide-probe.c
@@ -1609,6 +1609,9 @@ struct ide_host *ide_host_alloc_all(const struct ide_port_info *d,
if (hws[0])
host->dev[0] = hws[0]->dev;
+ if (d)
+ host->host_flags = d->host_flags;
+
return host;
}
EXPORT_SYMBOL_GPL(ide_host_alloc_all);