summaryrefslogtreecommitdiffstats
path: root/sys/dev/exca/exca.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/exca/exca.c')
-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