summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJoerg Jung <jung@cvs.openbsd.org>2015-10-01 18:41:07 +0000
committerJoerg Jung <jung@cvs.openbsd.org>2015-10-01 18:41:07 +0000
commite0593ea460688731a4e2540aee568dad68a40c53 (patch)
treeb0218bd0748979bd8d0f87afe0ae7e54935adde0 /sys
parentecac901a7b9e9988a81f5b61ef3b1a2b5a6e18ae (diff)
relax vendor comparison to match variations found in older
models for example macmini1,1
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isa/asmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isa/asmc.c b/sys/dev/isa/asmc.c
index 3efefdd3c6a..6da20888b24 100644
--- a/sys/dev/isa/asmc.c
+++ b/sys/dev/isa/asmc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: asmc.c,v 1.4 2015/10/01 18:31:40 jung Exp $ */
+/* $OpenBSD: asmc.c,v 1.5 2015/10/01 18:41:06 jung Exp $ */
/*
* Copyright (c) 2015 Joerg Jung <jung@openbsd.org>
*
@@ -205,7 +205,7 @@ asmc_match(struct device *parent, void *match, void *aux)
bus_space_handle_t ioh;
int i;
- if (!hw_vendor || !hw_prod || strcmp(hw_vendor, "Apple Inc."))
+ if (!hw_vendor || !hw_prod || strncmp(hw_vendor, "Apple", 5))
return 0;
for (i = 0; asmc_prods[i].pr_name && !sc->sc_prod; i++)