aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fdc
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2016-05-04 23:00:57 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2016-05-04 23:00:57 +0000
commite45163b2162def698a0320716097091257c39dea (patch)
tree7b6f3673b857a88dcf81c1cb6c084a52c7bdf9d2 /sys/dev/fdc
parent8907f744ff167dcf9545e2cb089e2831bdd58cd6 (diff)
Notes
Diffstat (limited to 'sys/dev/fdc')
-rw-r--r--sys/dev/fdc/fdc_acpi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/fdc/fdc_acpi.c b/sys/dev/fdc/fdc_acpi.c
index 9c6eb358ed61..afef4096316b 100644
--- a/sys/dev/fdc/fdc_acpi.c
+++ b/sys/dev/fdc/fdc_acpi.c
@@ -135,14 +135,13 @@ fdc_acpi_attach(device_t dev)
obj = buf.Pointer;
error = fdc_acpi_probe_children(bus, dev, obj->Buffer.Pointer);
- if (error == 0)
- fdc_start_worker(dev);
-
out:
if (buf.Pointer)
free(buf.Pointer, M_TEMP);
if (error != 0)
fdc_release_resources(sc);
+ else
+ fdc_start_worker(dev);
return (error);
}