diff options
author | takawata <takawata@FreeBSD.org> | 2005-06-10 16:12:43 +0000 |
---|---|---|
committer | takawata <takawata@FreeBSD.org> | 2005-06-10 16:12:43 +0000 |
commit | 024ebcc52b509051395cceb59fa99050e956b50c (patch) | |
tree | 2cd076dd2fc7197365fd6d324bae56838d28caab /sys/dev/ichsmb/ichsmb_pci.c | |
parent | 6ee6d8891675b656ba92d6c73aa98b03a975c2fe (diff) | |
download | FreeBSD-src-024ebcc52b509051395cceb59fa99050e956b50c.zip FreeBSD-src-024ebcc52b509051395cceb59fa99050e956b50c.tar.gz |
Make ichsmb(4) child device handling properly.
Diffstat (limited to 'sys/dev/ichsmb/ichsmb_pci.c')
-rw-r--r-- | sys/dev/ichsmb/ichsmb_pci.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/ichsmb/ichsmb_pci.c b/sys/dev/ichsmb/ichsmb_pci.c index e4412af..41f7c29 100644 --- a/sys/dev/ichsmb/ichsmb_pci.c +++ b/sys/dev/ichsmb/ichsmb_pci.c @@ -80,12 +80,17 @@ __FBSDID("$FreeBSD$"); /* Internal functions */ static int ichsmb_pci_probe(device_t dev); static int ichsmb_pci_attach(device_t dev); +/*Use generic one for now*/ +#if 0 +static int ichsmb_pci_detach(device_t dev); +#endif /* Device methods */ static device_method_t ichsmb_pci_methods[] = { /* Device interface */ DEVMETHOD(device_probe, ichsmb_pci_probe), DEVMETHOD(device_attach, ichsmb_pci_attach), + DEVMETHOD(device_detach, ichsmb_detach), /* Bus methods */ DEVMETHOD(bus_print_child, bus_generic_print_child), @@ -224,6 +229,8 @@ fail: return (error); } + MODULE_DEPEND(ichsmb, pci, 1, 1, 1); MODULE_DEPEND(ichsmb, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER); MODULE_VERSION(ichsmb, 1); +; |