Add a MODULE_DEPEND() for the gpioths driver. Also, note that the prior commit
changed the sysctl format for the temperature from "I" to "IK", and correspondingly changed the units from integer degrees C to decikelvin. For access via sysctl(8) the output will be the same except that now decimal fractions will be shown when available.
This commit is contained in:
parent
fd6e0c43a6
commit
35e9bfc98f
@ -76,8 +76,6 @@ struct gpioths_softc {
|
||||
struct callout callout;
|
||||
};
|
||||
|
||||
static devclass_t gpioths_devclass;
|
||||
|
||||
/* Prototypes */
|
||||
static int gpioths_probe(device_t dev);
|
||||
static int gpioths_attach(device_t dev);
|
||||
@ -376,5 +374,8 @@ static device_method_t gpioths_methods[] = {
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static devclass_t gpioths_devclass;
|
||||
|
||||
DEFINE_CLASS_0(gpioths, gpioths_driver, gpioths_methods, sizeof(struct gpioths_softc));
|
||||
DRIVER_MODULE(gpioths, gpiobus, gpioths_driver, gpioths_devclass, 0, 0);
|
||||
MODULE_DEPEND(gpioths, gpiobus, 1, 1, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user