Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci ichsmb(4): Use config_detach_children to simplify.
details: https://anonhg.NetBSD.org/src/rev/3a8cc8bc17b6
branches: trunk
changeset: 370648:3a8cc8bc17b6
user: riastradh <riastradh%NetBSD.org@localhost>
date: Thu Sep 22 14:45:01 2022 +0000
description:
ichsmb(4): Use config_detach_children to simplify.
diffstat:
sys/dev/pci/ichsmb.c | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diffs (33 lines):
diff -r 9bed96f473e2 -r 3a8cc8bc17b6 sys/dev/pci/ichsmb.c
--- a/sys/dev/pci/ichsmb.c Thu Sep 22 14:44:47 2022 +0000
+++ b/sys/dev/pci/ichsmb.c Thu Sep 22 14:45:01 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ichsmb.c,v 1.78 2022/09/22 14:44:47 riastradh Exp $ */
+/* $NetBSD: ichsmb.c,v 1.79 2022/09/22 14:45:01 riastradh Exp $ */
/* $OpenBSD: ichiic.c,v 1.44 2020/10/07 11:23:05 jsg Exp $ */
/*
@@ -22,7 +22,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ichsmb.c,v 1.78 2022/09/22 14:44:47 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ichsmb.c,v 1.79 2022/09/22 14:45:01 riastradh Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -256,11 +256,9 @@
struct ichsmb_softc *sc = device_private(self);
int error;
- if (sc->sc_i2c_device) {
- error = config_detach(sc->sc_i2c_device, flags);
- if (error)
- return error;
- }
+ error = config_detach_children(self, flags);
+ if (error)
+ return error;
iic_tag_fini(&sc->sc_i2c_tag);
Home |
Main Index |
Thread Index |
Old Index