diff options
Diffstat (limited to 'sys/arm/lpc/lpc_spi.c')
-rw-r--r-- | sys/arm/lpc/lpc_spi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arm/lpc/lpc_spi.c b/sys/arm/lpc/lpc_spi.c index 96a0e26..5bf8f7d 100644 --- a/sys/arm/lpc/lpc_spi.c +++ b/sys/arm/lpc/lpc_spi.c @@ -85,6 +85,10 @@ static int lpc_spi_transfer(device_t, device_t, struct spi_command *); static int lpc_spi_probe(device_t dev) { + + if (!ofw_bus_status_okay(dev)) + return (ENXIO); + if (!ofw_bus_is_compatible(dev, "lpc,spi")) return (ENXIO); |