Module Name: src Committed By: thorpej Date: Tue Mar 23 01:29:32 UTC 2021
Modified Files: src/sys/arch/x86/pci/imcsmb [thorpej-cfargs]: imcsmb.c Log Message: In imcsmb_rescan(), no need to explcitly check that we're being asked to rescan on the "i2cbus" interface attribute. The autoconfiguration machinery will not request a rescan of an interface attribute that a device does not carry, and imcsmb only carries "i2cbus". To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.3.10.1 src/sys/arch/x86/pci/imcsmb/imcsmb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/x86/pci/imcsmb/imcsmb.c diff -u src/sys/arch/x86/pci/imcsmb/imcsmb.c:1.3 src/sys/arch/x86/pci/imcsmb/imcsmb.c:1.3.10.1 --- src/sys/arch/x86/pci/imcsmb/imcsmb.c:1.3 Sun Dec 22 23:23:31 2019 +++ src/sys/arch/x86/pci/imcsmb/imcsmb.c Tue Mar 23 01:29:32 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: imcsmb.c,v 1.3 2019/12/22 23:23:31 thorpej Exp $ */ +/* $NetBSD: imcsmb.c,v 1.3.10.1 2021/03/23 01:29:32 thorpej Exp $ */ /*- * Copyright (c) 2018 The NetBSD Foundation, Inc. @@ -66,7 +66,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: imcsmb.c,v 1.3 2019/12/22 23:23:31 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: imcsmb.c,v 1.3.10.1 2021/03/23 01:29:32 thorpej Exp $"); #include <sys/param.h> #include <sys/kernel.h> @@ -134,7 +134,7 @@ imcsmb_attach(device_t parent, device_t if (!pmf_device_register(self, NULL, NULL)) aprint_error_dev(self, "couldn't establish power handler\n"); - imcsmb_rescan(self, "i2cbus", 0); + imcsmb_rescan(self, NULL, NULL); } static int @@ -143,9 +143,6 @@ imcsmb_rescan(device_t self, const char struct imcsmb_softc *sc = device_private(self); struct i2cbus_attach_args iba; - if (!ifattr_match(ifattr, "i2cbus")) - return 0; - /* Create the i2cbus child */ if (sc->sc_smbus != NULL) return 0;