diff options
| author | Yuri Pankov <yuripv@FreeBSD.org> | 2019-08-29 12:49:21 +0000 |
|---|---|---|
| committer | Yuri Pankov <yuripv@FreeBSD.org> | 2019-08-29 12:49:21 +0000 |
| commit | 2051169a4f4f045b66eb635d73ccfc2273a97c2d (patch) | |
| tree | 8e219f07fed62d4880f71878a6ba62f340457abe /sys/dev/ichsmb | |
| parent | 3485f4574e6e64ca0127685c260ed4726ee30b27 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ichsmb')
| -rw-r--r-- | sys/dev/ichsmb/ichsmb.c | 7 |
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); |
