Remove unused ahci_devclass.
This commit is contained in:
parent
22a99a5272
commit
23802d41fa
@ -423,4 +423,4 @@ static driver_t ahci_ata_driver = {
|
||||
sizeof(struct ahci_a10_softc)
|
||||
};
|
||||
|
||||
DRIVER_MODULE(a10_ahci, simplebus, ahci_ata_driver, ahci_devclass, 0, 0);
|
||||
DRIVER_MODULE(a10_ahci, simplebus, ahci_ata_driver, 0, 0);
|
||||
|
@ -358,6 +358,6 @@ static driver_t ahci_ata_driver = {
|
||||
sizeof(struct ahci_controller)
|
||||
};
|
||||
|
||||
DRIVER_MODULE(imx6_ahci, simplebus, ahci_ata_driver, ahci_devclass, 0, 0);
|
||||
DRIVER_MODULE(imx6_ahci, simplebus, ahci_ata_driver, 0, 0);
|
||||
MODULE_DEPEND(imx6_ahci, ahci, 1, 1, 1);
|
||||
SIMPLEBUS_PNP_INFO(compat_data)
|
||||
|
@ -780,5 +780,4 @@ static device_method_t tegra_ahci_methods[] = {
|
||||
|
||||
static DEFINE_CLASS_0(ahci, tegra_ahci_driver, tegra_ahci_methods,
|
||||
sizeof(struct tegra_ahci_sc));
|
||||
DRIVER_MODULE(tegra_ahci, simplebus, tegra_ahci_driver, ahci_devclass,
|
||||
NULL, NULL);
|
||||
DRIVER_MODULE(tegra_ahci, simplebus, tegra_ahci_driver, NULL, NULL);
|
||||
|
@ -2906,7 +2906,5 @@ ahcipoll(struct cam_sim *sim)
|
||||
}
|
||||
}
|
||||
|
||||
devclass_t ahci_devclass;
|
||||
|
||||
MODULE_VERSION(ahci, 1);
|
||||
MODULE_DEPEND(ahci, cam, 1, 1, 1);
|
||||
|
@ -674,5 +674,3 @@ void ahci_attached(device_t dev, struct ahci_channel *ch);
|
||||
void ahci_detached(device_t dev, struct ahci_channel *ch);
|
||||
struct ahci_channel * ahci_getch(device_t dev, int n);
|
||||
void ahci_putch(struct ahci_channel *ch);
|
||||
|
||||
extern devclass_t ahci_devclass;
|
||||
|
@ -151,5 +151,5 @@ static driver_t ahci_driver = {
|
||||
sizeof(struct ahci_controller)
|
||||
};
|
||||
|
||||
DRIVER_MODULE(ahci_mv, simplebus, ahci_driver, ahci_devclass, NULL, NULL);
|
||||
DRIVER_MODULE(ahci_mv, ofwbus, ahci_driver, ahci_devclass, NULL, NULL);
|
||||
DRIVER_MODULE(ahci_mv, simplebus, ahci_driver, NULL, NULL);
|
||||
DRIVER_MODULE(ahci_mv, ofwbus, ahci_driver, NULL, NULL);
|
||||
|
@ -746,15 +746,18 @@ static device_method_t ahci_methods[] = {
|
||||
DEVMETHOD(bus_get_dma_tag, ahci_get_dma_tag),
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static driver_t ahci_driver = {
|
||||
"ahci",
|
||||
ahci_methods,
|
||||
sizeof(struct ahci_controller)
|
||||
};
|
||||
DRIVER_MODULE(ahci, pci, ahci_driver, ahci_devclass, NULL, NULL);
|
||||
|
||||
DRIVER_MODULE(ahci, pci, ahci_driver, NULL, NULL);
|
||||
/* Also matches class / subclass / progid XXX need to add when we have masking support */
|
||||
MODULE_PNP_INFO("W32:vendor/device", pci, ahci, ahci_ids,
|
||||
nitems(ahci_ids) - 1);
|
||||
|
||||
static device_method_t ahci_ata_methods[] = {
|
||||
DEVMETHOD(device_probe, ahci_ata_probe),
|
||||
DEVMETHOD(device_attach, ahci_pci_attach),
|
||||
@ -769,9 +772,11 @@ static device_method_t ahci_ata_methods[] = {
|
||||
DEVMETHOD(bus_child_location, ahci_child_location),
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static driver_t ahci_ata_driver = {
|
||||
"ahci",
|
||||
ahci_ata_methods,
|
||||
sizeof(struct ahci_controller)
|
||||
};
|
||||
DRIVER_MODULE(ahci, atapci, ahci_ata_driver, ahci_devclass, NULL, NULL);
|
||||
|
||||
DRIVER_MODULE(ahci, atapci, ahci_ata_driver, NULL, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user