aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ichsmb
diff options
context:
space:
mode:
authorYuri Pankov <yuripv@FreeBSD.org>2019-08-29 12:49:21 +0000
committerYuri Pankov <yuripv@FreeBSD.org>2019-08-29 12:49:21 +0000
commit2051169a4f4f045b66eb635d73ccfc2273a97c2d (patch)
tree8e219f07fed62d4880f71878a6ba62f340457abe /sys/dev/ichsmb
parent3485f4574e6e64ca0127685c260ed4726ee30b27 (diff)
Notes
Diffstat (limited to 'sys/dev/ichsmb')
-rw-r--r--sys/dev/ichsmb/ichsmb.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/ichsmb/ichsmb.c b/sys/dev/ichsmb/ichsmb.c
index 5ff54db86004..b69c40089024 100644
--- a/sys/dev/ichsmb/ichsmb.c
+++ b/sys/dev/ichsmb/ichsmb.c
@@ -131,11 +131,8 @@ ichsmb_attach(device_t dev)
goto fail;
}
- /* Attach "smbus" child */
- if ((error = bus_generic_attach(dev)) != 0) {
- device_printf(dev, "failed to attach child: %d\n", error);
- goto fail;
- }
+ /* Probe and attach the smbus when interrupts are available */
+ config_intrhook_oneshot((ich_func_t)bus_generic_attach, dev);
return (0);