From df2037ddb7442555cd756f9ec3b72fbeba976ec9 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 15 Jun 2011 21:32:06 +0000 Subject: Add a const char* as first member of struct adb_attach_args, so that we can pass a struct confargs * on macppc for some specific children of the adb node, and not confuse real adb device attachments. ok mpi@ --- sys/dev/adb/ams.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/dev/adb/ams.c') diff --git a/sys/dev/adb/ams.c b/sys/dev/adb/ams.c index 332772d7660..fa468f60539 100644 --- a/sys/dev/adb/ams.c +++ b/sys/dev/adb/ams.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ams.c,v 1.5 2007/04/10 22:37:17 miod Exp $ */ +/* $OpenBSD: ams.c,v 1.6 2011/06/15 21:32:05 miod Exp $ */ /* $NetBSD: ams.c,v 1.11 2000/12/19 03:13:40 tsubai Exp $ */ /* @@ -78,6 +78,9 @@ amsmatch(struct device *parent, void *cf, void *aux) { struct adb_attach_args *aa_args = aux; + if (strcmp(aa_args->name, adb_device_name) != 0) + return (0); + if (aa_args->origaddr == ADBADDR_MS) return 1; else -- cgit v1.2.3