diff --git a/sys/dev/iicbus/ds3231.c b/sys/dev/iicbus/ds3231.c index bd4142c6291..0e95379da50 100644 --- a/sys/dev/iicbus/ds3231.c +++ b/sys/dev/iicbus/ds3231.c @@ -356,16 +356,20 @@ ds3231_en32khz_sysctl(SYSCTL_HANDLER_ARGS) static int ds3231_probe(device_t dev) { + int rc; #ifdef FDT if (!ofw_bus_status_okay(dev)) return (ENXIO); - if (!ofw_bus_is_compatible(dev, "maxim,ds3231")) - return (ENXIO); + if (ofw_bus_is_compatible(dev, "maxim,ds3231")) + rc = BUS_PROBE_DEFAULT; + else #endif + rc = BUS_PROBE_NOWILDCARD; + device_set_desc(dev, "Maxim DS3231 RTC"); - return (BUS_PROBE_DEFAULT); + return (rc); } static int