diff --git a/sys/dev/iicbus/adt746x.c b/sys/dev/iicbus/adt746x.c index 435075e78e4a..6112f9a9dd36 100644 --- a/sys/dev/iicbus/adt746x.c +++ b/sys/dev/iicbus/adt746x.c @@ -472,7 +472,6 @@ adt746x_attach_fans(device_t dev) struct adt746x_softc *sc; struct sysctl_oid *oid, *fanroot_oid; struct sysctl_ctx_list *ctx; - phandle_t child; char sysctl_name[32]; int i, j; @@ -480,8 +479,6 @@ adt746x_attach_fans(device_t dev) sc->sc_nfans = 0; - child = ofw_bus_get_node(dev); - /* Count the actual number of fans. */ sc->sc_nfans = adt746x_fill_fan_prop(dev); @@ -600,7 +597,6 @@ adt746x_attach_sensors(device_t dev) struct adt746x_softc *sc; struct sysctl_oid *oid, *sensroot_oid; struct sysctl_ctx_list *ctx; - phandle_t child; char sysctl_name[40]; const char *unit; const char *desc; @@ -609,7 +605,6 @@ adt746x_attach_sensors(device_t dev) sc = device_get_softc(dev); sc->sc_nsensors = 0; - child = ofw_bus_get_node(dev); /* Count the actual number of sensors. */ sc->sc_nsensors = adt746x_fill_sensor_prop(dev);