aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fdc
diff options
context:
space:
mode:
authorTakanori Watanabe <takawata@FreeBSD.org>2018-10-26 00:05:46 +0000
committerTakanori Watanabe <takawata@FreeBSD.org>2018-10-26 00:05:46 +0000
commit5efca36fbda65afe7726d685dcc43a707ef76447 (patch)
tree582c853f814a4acc5c72bf510ec4ba7b180e75c3 /sys/dev/fdc
parentfef4815e9af171e64f6156bf7b97bb7424b8a22b (diff)
Notes
Diffstat (limited to 'sys/dev/fdc')
-rw-r--r--sys/dev/fdc/fdc_acpi.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/fdc/fdc_acpi.c b/sys/dev/fdc/fdc_acpi.c
index 1adebe845304..6da5bf135b4a 100644
--- a/sys/dev/fdc/fdc_acpi.c
+++ b/sys/dev/fdc/fdc_acpi.c
@@ -81,16 +81,18 @@ fdc_acpi_probe(device_t dev)
{
device_t bus;
static char *fdc_ids[] = { "PNP0700", "PNP0701", NULL };
+ int rv;
bus = device_get_parent(dev);
- if (ACPI_ID_PROBE(bus, dev, fdc_ids) == NULL)
- return (ENXIO);
+ rv = ACPI_ID_PROBE(bus, dev, fdc_ids, NULL);
+ if (rv > 0)
+ return (rv);
if (ACPI_SUCCESS(ACPI_EVALUATE_OBJECT(bus, dev, "_FDE", NULL, NULL)))
device_set_desc(dev, "floppy drive controller (FDE)");
else
device_set_desc(dev, "floppy drive controller");
- return (0);
+ return (rv);
}
static int