aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/exca
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2005-10-19 00:25:39 +0000
committerWarner Losh <imp@FreeBSD.org>2005-10-19 00:25:39 +0000
commit02341dd12eec7d0a782c27fb4241dc40cd3adf02 (patch)
tree488e43f0e0f1550cafabc5b869693e8630d9d346 /sys/dev/exca
parentd9efa52e175ab58460bf8c3eb3c3a2ac90b1b1cd (diff)
downloadsrc-02341dd12eec7d0a782c27fb4241dc40cd3adf02.tar.gz
src-02341dd12eec7d0a782c27fb4241dc40cd3adf02.zip
Set the name of the chipset found
Notes
Notes: svn path=/head/; revision=151458
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 dc59c2329bcf..c2c13334bc0a 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);
}