Add a proper detach method to the est(4) driver using cpufreq_unregister().

MFC after:	1 week
This commit is contained in:
jhb 2008-09-10 17:41:41 +00:00
parent 5bde7108b7
commit 069152e433

View File

@ -1036,14 +1036,17 @@ est_attach(device_t dev)
static int
est_detach(device_t dev)
{
#if 0
struct est_softc *sc;
int error;
error = cpufreq_unregister(dev);
if (error)
return (error);
sc = device_get_softc(dev);
if (sc->acpi_settings || sc->msr_settings)
free(sc->freq_list, M_DEVBUF);
#endif
return (ENXIO);
return (0);
}
/*