Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/emips/ebus Remove unused ebus_softc and use CFATTAC...
details: https://anonhg.NetBSD.org/src/rev/ad517539bcd4
branches: trunk
changeset: 765961:ad517539bcd4
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sun Jun 12 04:00:33 2011 +0000
description:
Remove unused ebus_softc and use CFATTACH_DECL_NEW().
diffstat:
sys/arch/emips/ebus/ebus_emips.c | 6 +++---
sys/arch/emips/ebus/ebusvar.h | 6 +-----
2 files changed, 4 insertions(+), 8 deletions(-)
diffs (47 lines):
diff -r 4c88e283584b -r ad517539bcd4 sys/arch/emips/ebus/ebus_emips.c
--- a/sys/arch/emips/ebus/ebus_emips.c Sun Jun 12 03:57:09 2011 +0000
+++ b/sys/arch/emips/ebus/ebus_emips.c Sun Jun 12 04:00:33 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ebus_emips.c,v 1.2 2011/06/12 03:52:13 tsutsui Exp $ */
+/* $NetBSD: ebus_emips.c,v 1.3 2011/06/12 04:00:33 tsutsui Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: ebus_emips.c,v 1.2 2011/06/12 03:52:13 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ebus_emips.c,v 1.3 2011/06/12 04:00:33 tsutsui Exp $");
#include "opt_xilinx_ml40x.h"
#include "opt_xs_bee3.h"
@@ -51,7 +51,7 @@
static int ebus_emips_match(device_t, cfdata_t, void *);
static void ebus_emips_attach(device_t, device_t, void *);
-CFATTACH_DECL(ebus_emips, sizeof(struct ebus_softc),
+CFATTACH_DECL_NEW(ebus_emips, 0,
ebus_emips_match, ebus_emips_attach, NULL, NULL);
#if defined(XILINX_ML40x) || defined(XS_BEE3)
diff -r 4c88e283584b -r ad517539bcd4 sys/arch/emips/ebus/ebusvar.h
--- a/sys/arch/emips/ebus/ebusvar.h Sun Jun 12 03:57:09 2011 +0000
+++ b/sys/arch/emips/ebus/ebusvar.h Sun Jun 12 04:00:33 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ebusvar.h,v 1.2 2011/06/12 03:57:09 tsutsui Exp $ */
+/* $NetBSD: ebusvar.h,v 1.3 2011/06/12 04:00:33 tsutsui Exp $ */
#ifndef _EMIPS_EBUS_EBUSVAR_H_
#define _EMIPS_EBUS_EBUSVAR_H_
@@ -7,10 +7,6 @@
struct ebus_attach_args;
-struct ebus_softc {
- struct device sc_dev;
-};
-
/*
* Arguments used to attach an ebus "device" to its parent
*/
Home |
Main Index |
Thread Index |
Old Index