summaryrefslogtreecommitdiffstats
path: root/sys/dev/exca
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-10-19 00:25:39 +0000
committerimp <imp@FreeBSD.org>2005-10-19 00:25:39 +0000
commit0c736a6f9b97bb25ca62a2acba74284d4d44d1c7 (patch)
tree488e43f0e0f1550cafabc5b869693e8630d9d346 /sys/dev/exca
parenta6f06998458f2d2ccd0ff4e8b40d0645ac566f94 (diff)
downloadFreeBSD-src-0c736a6f9b97bb25ca62a2acba74284d4d44d1c7.zip
FreeBSD-src-0c736a6f9b97bb25ca62a2acba74284d4d44d1c7.tar.gz
Set the name of the chipset found
Diffstat (limited to 'sys/dev/exca')
-rw-r--r--sys/dev/exca/exca.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/exca/exca.c b/sys/dev/exca/exca.c
index dc59c23..c2c1333 100644
--- a/sys/dev/exca/exca.c
+++ b/sys/dev/exca/exca.c
@@ -86,7 +86,6 @@ __FBSDID("$FreeBSD$");
#define DPRINTF(fmt, args...)
#endif
-#if 0
static const char *chip_names[] =
{
"CardBus socket",
@@ -105,7 +104,6 @@ static const char *chip_names[] =
"IBM clone",
"IBM KING PCMCIA Controller"
};
-#endif
static exca_getb_fn exca_mem_getb;
static exca_putb_fn exca_mem_putb;
@@ -758,8 +756,10 @@ exca_probe_slots(device_t dev, struct exca_softc *exca, bus_space_tag_t iot,
exca_init(&exca[i], dev, iot, ioh, i * EXCA_SOCKET_SIZE);
exca->getb = exca_io_getb;
exca->putb = exca_io_putb;
- if (exca_valid_slot(&exca[i]))
+ if (exca_valid_slot(&exca[i])) {
+ device_set_desc(dev, chip_names[exca[i].chipset]);
err = 0;
+ }
}
return (err);
}
OpenPOWER on IntegriCloud