Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Remove extraneous sysctl setup calls now done as par...
details: https://anonhg.NetBSD.org/src/rev/753bbb149020
branches: trunk
changeset: 328702:753bbb149020
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Apr 14 14:30:24 2014 +0000
description:
Remove extraneous sysctl setup calls now done as part of regular attach.
diffstat:
sys/dev/i2c/spdmem_i2c.c | 7 ++-----
sys/dev/ic/spdmem.c | 6 ++----
2 files changed, 4 insertions(+), 9 deletions(-)
diffs (62 lines):
diff -r 0579b830c772 -r 753bbb149020 sys/dev/i2c/spdmem_i2c.c
--- a/sys/dev/i2c/spdmem_i2c.c Mon Apr 14 14:24:27 2014 +0000
+++ b/sys/dev/i2c/spdmem_i2c.c Mon Apr 14 14:30:24 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spdmem_i2c.c,v 1.8 2013/08/07 19:38:45 soren Exp $ */
+/* $NetBSD: spdmem_i2c.c,v 1.9 2014/04/14 14:30:24 pooka Exp $ */
/*
* Copyright (c) 2007 Nicolas Joly
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spdmem_i2c.c,v 1.8 2013/08/07 19:38:45 soren Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spdmem_i2c.c,v 1.9 2014/04/14 14:30:24 pooka Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -67,8 +67,6 @@
static uint8_t spdmem_i2c_read(struct spdmem_softc *, uint8_t);
-SYSCTL_SETUP_PROTO(sysctl_spdmem_setup);
-
static int
spdmem_i2c_match(device_t parent, cfdata_t match, void *aux)
{
@@ -152,7 +150,6 @@
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);
#endif
diff -r 0579b830c772 -r 753bbb149020 sys/dev/ic/spdmem.c
--- a/sys/dev/ic/spdmem.c Mon Apr 14 14:24:27 2014 +0000
+++ b/sys/dev/ic/spdmem.c Mon Apr 14 14:30:24 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spdmem.c,v 1.9 2014/02/25 18:30:09 pooka Exp $ */
+/* $NetBSD: spdmem.c,v 1.10 2014/04/14 14:30:24 pooka Exp $ */
/*
* Copyright (c) 2007 Nicolas Joly
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spdmem.c,v 1.9 2014/02/25 18:30:09 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spdmem.c,v 1.10 2014/04/14 14:30:24 pooka Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -47,8 +47,6 @@
#include <dev/ic/spdmemreg.h>
#include <dev/ic/spdmemvar.h>
-SYSCTL_SETUP_PROTO(sysctl_spdmem_setup);
-
/* Routines for decoding spd data */
static void decode_edofpm(const struct sysctlnode *, device_t, struct spdmem *);
static void decode_rom(const struct sysctlnode *, device_t, struct spdmem *);
Home |
Main Index |
Thread Index |
Old Index