diff --git a/sys/dev/ed/if_ed_cbus.c b/sys/dev/ed/if_ed_cbus.c index ce19d309315..d5bdfdcbe7e 100644 --- a/sys/dev/ed/if_ed_cbus.c +++ b/sys/dev/ed/if_ed_cbus.c @@ -1605,7 +1605,7 @@ static device_method_t ed_cbus_methods[] = { /* Device interface */ DEVMETHOD(device_probe, ed_cbus_probe), DEVMETHOD(device_attach, ed_cbus_attach), - DEVMETHOD(device_attach, ed_detach), + DEVMETHOD(device_detach, ed_detach), { 0, 0 } }; diff --git a/sys/dev/ed/if_ed_pci.c b/sys/dev/ed/if_ed_pci.c index a969e13420d..2a88576c93a 100644 --- a/sys/dev/ed/if_ed_pci.c +++ b/sys/dev/ed/if_ed_pci.c @@ -112,7 +112,7 @@ static device_method_t ed_pci_methods[] = { /* Device interface */ DEVMETHOD(device_probe, ed_pci_probe), DEVMETHOD(device_attach, ed_pci_attach), - DEVMETHOD(device_attach, ed_detach), + DEVMETHOD(device_detach, ed_detach), { 0, 0 } };