diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2004-05-15 00:07:23 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2004-05-15 00:07:23 +0000 |
commit | 0f126ea09f819a8f866d1c4ceeb57d83e5a03e9f (patch) | |
tree | 3429df9d59c25dace20c4e56a95963432e207668 /sys/dev/ichwd | |
parent | 045ec6ce2fc4bb272df79cb379ff3aa9db5eef63 (diff) |
Notes
Diffstat (limited to 'sys/dev/ichwd')
-rw-r--r-- | sys/dev/ichwd/ichwd.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/sys/dev/ichwd/ichwd.c b/sys/dev/ichwd/ichwd.c index 0321ca1fa86a5..b3016cd5997dd 100644 --- a/sys/dev/ichwd/ichwd.c +++ b/sys/dev/ichwd/ichwd.c @@ -203,13 +203,6 @@ ichwd_event(void *arg, unsigned int cmd, int *error) return; } -static int -ichwd_probe(device_t dev) -{ - (void)dev; - return (0); -} - static unsigned long pmbase; /* @@ -223,8 +216,6 @@ ichwd_identify(driver_t *driver, device_t parent) device_t ich = NULL; device_t dev; - printf("%s()\n", __func__); - /* look for an ICH LPC interface bridge */ for (id = ichwd_devices; id->desc != NULL; ++id) if ((ich = pci_find_device(id->vendor, id->device)) != NULL) @@ -257,7 +248,13 @@ ichwd_identify(driver_t *driver, device_t parent) if ((dev = device_find_child(parent, driver->name, 0)) == NULL) dev = BUS_ADD_CHILD(parent, 0, driver->name, -1); device_set_desc_copy(dev, id->desc); - device_set_driver(dev, driver); +} + +static int +ichwd_probe(device_t dev) +{ + (void)dev; + return (0); } static int @@ -265,8 +262,6 @@ ichwd_attach(device_t dev) { struct ichwd_softc *sc; - device_printf(dev, "attaching\n"); - sc = device_get_softc(dev); sc->device = dev; |