aboutsummaryrefslogtreecommitdiff
path: root/sys/isa/isa_common.c
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>1999-09-04 14:43:35 +0000
committerDoug Rabson <dfr@FreeBSD.org>1999-09-04 14:43:35 +0000
commit2aadbbb680452d1a647b4519b64997bf55167438 (patch)
tree0d3bbdc58d586c574b405cc775a27ce4070bf403 /sys/isa/isa_common.c
parentf9f5cfd4dd1a98821f3ddd0d18d7e649a7695bb4 (diff)
downloadsrc-2aadbbb680452d1a647b4519b64997bf55167438.tar.gz
src-2aadbbb680452d1a647b4519b64997bf55167438.zip
Only set the description if there is one in the matching isa_pnp_id.
Notes
Notes: svn path=/head/; revision=50910
Diffstat (limited to 'sys/isa/isa_common.c')
-rw-r--r--sys/isa/isa_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/isa/isa_common.c b/sys/isa/isa_common.c
index 8d597fe8cae1..c6e736c61cb5 100644
--- a/sys/isa/isa_common.c
+++ b/sys/isa/isa_common.c
@@ -856,7 +856,8 @@ isa_pnp_probe(device_t dev, device_t child, struct isa_pnp_id *ids)
*/
if (idev->id_logicalid == ids->ip_id
|| idev->id_compatid == ids->ip_id) {
- device_set_desc(child, ids->ip_desc);
+ if (ids->ip_desc)
+ device_set_desc(child, ids->ip_desc);
return 0;
}
ids++;