Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/thorpej-cfargs]: src/sys/dev/ic This driver only has a single interface ...
details: https://anonhg.NetBSD.org/src/rev/c357ef1f4005
branches: thorpej-cfargs
changeset: 960474:c357ef1f4005
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Mar 28 20:25:44 2021 +0000
description:
This driver only has a single interface attribute, so no need to be expicit
about it. That interface attribute has no locators, so don't pass them
to config_search().
diffstat:
sys/dev/ic/apple_smc.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r d4a05f2de993 -r c357ef1f4005 sys/dev/ic/apple_smc.c
--- a/sys/dev/ic/apple_smc.c Sun Mar 28 20:02:29 2021 +0000
+++ b/sys/dev/ic/apple_smc.c Sun Mar 28 20:25:44 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: apple_smc.c,v 1.6.50.1 2021/03/20 19:33:40 thorpej Exp $ */
+/* $NetBSD: apple_smc.c,v 1.6.50.2 2021/03/28 20:25:44 thorpej Exp $ */
/*
* Apple System Management Controller
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: apple_smc.c,v 1.6.50.1 2021/03/20 19:33:40 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: apple_smc.c,v 1.6.50.2 2021/03/28 20:25:44 thorpej Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -81,7 +81,7 @@
#endif
/* Attach any children. */
- (void)apple_smc_rescan(smc, APPLE_SMC_BUS, NULL);
+ (void)apple_smc_rescan(smc, NULL, NULL);
}
int
@@ -110,8 +110,6 @@
/* Let autoconf(9) do the work of finding new children. */
config_search(smc->smc_dev, smc,
CFARG_SUBMATCH, apple_smc_search,
- CFARG_IATTR, APPLE_SMC_BUS,
- CFARG_LOCATORS, locators,
CFARG_EOL);
return 0;
}
Home |
Main Index |
Thread Index |
Old Index