aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2026-02-09 16:27:23 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2026-02-09 16:27:23 +0000
commit3f18463745c9c75e1fdcfacc710799838ef5c9d9 (patch)
tree5daba83ffd7521d349b08a3d38921153a0af304f
parentefdd30c94e0ac4007b52b6f40afdab52fecf2aa5 (diff)
sdhci_fdt_rockchip: Don't return 0 from probe routine
The only write to the softc is a no-op (softcs are initialized to all zeroes), so remove that and just use BUS_PROBE_DEFAULT. Reviewed by: bnovkov Differential Revision: https://reviews.freebsd.org/D55159
-rw-r--r--sys/dev/sdhci/sdhci_fdt_rockchip.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/sdhci/sdhci_fdt_rockchip.c b/sys/dev/sdhci/sdhci_fdt_rockchip.c
index 79d299f75fb4..2d0ade8055e7 100644
--- a/sys/dev/sdhci/sdhci_fdt_rockchip.c
+++ b/sys/dev/sdhci/sdhci_fdt_rockchip.c
@@ -113,9 +113,6 @@ static struct ofw_compat_data compat_data[] = {
static int
sdhci_fdt_rockchip_probe(device_t dev)
{
- struct sdhci_fdt_softc *sc = device_get_softc(dev);
-
- sc->quirks = 0;
if (!ofw_bus_status_okay(dev))
return (ENXIO);
@@ -130,7 +127,7 @@ sdhci_fdt_rockchip_probe(device_t dev)
return (ENXIO);
}
- return (0);
+ return (BUS_PROBE_DEFAULT);
}
static int