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>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user