Remove bogus detach routines

These drivers are not bus drivers, and would need proper detach
routines that tore down state stored in the softc.  Better to just
fail detach outright instead of an incorrect success.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D47389

(cherry picked from commit 7ebc7d1ab76b9d06be9400d6c9fc74fcc43603a1)
This commit is contained in:
John Baldwin 2024-11-04 20:31:16 -05:00
parent f5641a80b7
commit fa95268aeb
2 changed files with 0 additions and 2 deletions

View file

@ -213,7 +213,6 @@ static device_method_t gpiomdio_methods[] = {
/* Device interface */
DEVMETHOD(device_probe, gpiomdio_probe),
DEVMETHOD(device_attach, gpiomdio_attach),
DEVMETHOD(device_detach, bus_generic_detach),
/* MDIO interface */
DEVMETHOD(miibus_readreg, gpiomdio_readreg),

View file

@ -138,7 +138,6 @@ static device_method_t sfp_fdt_methods[] = {
/* Device interface */
DEVMETHOD(device_probe, sfp_fdt_probe),
DEVMETHOD(device_attach, sfp_fdt_attach),
DEVMETHOD(device_detach, bus_generic_detach),
/* SFF */
DEVMETHOD(sff_get_i2c_bus, sfp_fdt_get_i2c_bus),