Remove extraneous sysctl setup calls now done as part of regular attach.

This commit is contained in:
pooka 2014-04-14 14:30:24 +00:00
parent 17f708ab43
commit a81a378780
2 changed files with 4 additions and 9 deletions

View File

@ -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 @@ CFATTACH_DECL_NEW(spdmem_iic, sizeof(struct spdmem_i2c_softc),
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 @@ spdmem_modcmd(modcmd_t cmd, void *opaque)
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

View File

@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: spdmem.c,v 1.9 2014/02/25 18:30:09 pooka Exp $");
#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 *);