Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c Initialize the sysctl(9) stuff before configurin...
details: https://anonhg.NetBSD.org/src/rev/c1617914af0f
branches: trunk
changeset: 781511:c1617914af0f
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Wed Sep 12 00:36:41 2012 +0000
description:
Initialize the sysctl(9) stuff before configuring the spd(4) devices.
Otherwise, the devices do not create their own sysctl nodes!
diffstat:
sys/dev/i2c/spdmem_i2c.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 7a0223280fb7 -r c1617914af0f sys/dev/i2c/spdmem_i2c.c
--- a/sys/dev/i2c/spdmem_i2c.c Tue Sep 11 20:51:25 2012 +0000
+++ b/sys/dev/i2c/spdmem_i2c.c Wed Sep 12 00:36:41 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spdmem_i2c.c,v 1.5 2012/05/31 16:09:33 pgoyette Exp $ */
+/* $NetBSD: spdmem_i2c.c,v 1.6 2012/09/12 00:36:41 pgoyette Exp $ */
/*
* Copyright (c) 2007 Nicolas Joly
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spdmem_i2c.c,v 1.5 2012/05/31 16:09:33 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spdmem_i2c.c,v 1.6 2012/09/12 00:36:41 pgoyette Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -152,9 +152,9 @@
switch (cmd) {
case MODULE_CMD_INIT:
#ifdef _MODULE
+ sysctl_spdmem_setup(&spdmem_sysctl_clog);
error = config_init_component(cfdriver_ioconf_spdmem,
cfattach_ioconf_spdmem, cfdata_ioconf_spdmem);
- sysctl_spdmem_setup(&spdmem_sysctl_clog);
#endif
return error;
case MODULE_CMD_FINI:
Home |
Main Index |
Thread Index |
Old Index