Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/thorpej-i2c-spi-conf]: src/sys/dev/pci Pass along our devhandle to the i...
details: https://anonhg.NetBSD.org/src/rev/f6e007fb6bc2
branches: thorpej-i2c-spi-conf
changeset: 378778:f6e007fb6bc2
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri May 14 22:46:36 2021 +0000
description:
Pass along our devhandle to the iic bus instance.
diffstat:
sys/dev/pci/alipm.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r e8dc6566599f -r f6e007fb6bc2 sys/dev/pci/alipm.c
--- a/sys/dev/pci/alipm.c Fri May 14 06:53:14 2021 +0000
+++ b/sys/dev/pci/alipm.c Fri May 14 22:46:36 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: alipm.c,v 1.12 2021/04/24 23:36:57 thorpej Exp $ */
+/* $NetBSD: alipm.c,v 1.12.2.1 2021/05/14 22:46:36 thorpej Exp $ */
/* $OpenBSD: alipm.c,v 1.13 2007/05/03 12:19:01 dlg Exp $ */
/*
@@ -18,7 +18,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: alipm.c,v 1.12 2021/04/24 23:36:57 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: alipm.c,v 1.12.2.1 2021/05/14 22:46:36 thorpej Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -210,7 +210,9 @@ alipm_attach(device_t parent, device_t s
memset(&iba, 0, sizeof iba);
iba.iba_tag = &sc->sc_smb_tag;
- config_found(sc->sc_dev, &iba, iicbus_print, CFARG_EOL);
+ config_found(sc->sc_dev, &iba, iicbus_print,
+ CFARG_DEVHANDLE, device_handle(self),
+ CFARG_EOL);
return;
Home |
Main Index |
Thread Index |
Old Index