summaryrefslogtreecommitdiff
path: root/sys/dev/intel/spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/intel/spi.c')
-rw-r--r--sys/dev/intel/spi.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/sys/dev/intel/spi.c b/sys/dev/intel/spi.c
index e9b9bfc46fb0c..b11fa468c0567 100644
--- a/sys/dev/intel/spi.c
+++ b/sys/dev/intel/spi.c
@@ -423,13 +423,14 @@ static int
intelspi_probe(device_t dev)
{
static char *gpio_ids[] = { "80860F0E", NULL };
-
- if (acpi_disabled("spi") ||
- ACPI_ID_PROBE(device_get_parent(dev), dev, gpio_ids) == NULL)
- return (ENXIO);
-
- device_set_desc(dev, "Intel SPI Controller");
- return (0);
+ int rv;
+
+ if (acpi_disabled("spi") )
+ return (ENXIO);
+ rv = ACPI_ID_PROBE(device_get_parent(dev), dev, gpio_ids, NULL);
+ if (rv <= 0)
+ device_set_desc(dev, "Intel SPI Controller");
+ return (rv);
}
static int