diff --git a/sys/arm/ti/am335x/am335x_ecap.c b/sys/arm/ti/am335x/am335x_ecap.c --- a/sys/arm/ti/am335x/am335x_ecap.c +++ b/sys/arm/ti/am335x/am335x_ecap.c @@ -107,7 +107,7 @@ struct am335x_ecap_softc *sc; uint16_t reg; - dev = devclass_get_device(am335x_ecap_devclass, unit); + dev = devclass_get_device(devclass_find(am335x_ecap_driver.name), unit); if (dev == NULL) return (ENXIO);