summaryrefslogtreecommitdiffstats
path: root/sys/dev/ichwd
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2004-05-15 00:07:23 +0000
committerdes <des@FreeBSD.org>2004-05-15 00:07:23 +0000
commit574488a9ee484acace5aeb948a91bf741a29c5f7 (patch)
tree3429df9d59c25dace20c4e56a95963432e207668 /sys/dev/ichwd
parentd7cb4c8bebef43d0ea94b6f10187f343732ea28b (diff)
downloadFreeBSD-src-574488a9ee484acace5aeb948a91bf741a29c5f7.zip
FreeBSD-src-574488a9ee484acace5aeb948a91bf741a29c5f7.tar.gz
Remove some debugging printf()s and a pointless device_set_desc() call.
Diffstat (limited to 'sys/dev/ichwd')
-rw-r--r--sys/dev/ichwd/ichwd.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/sys/dev/ichwd/ichwd.c b/sys/dev/ichwd/ichwd.c
index 0321ca1..b3016cd 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;
OpenPOWER on IntegriCloud