Remove unused ebus_softc and use CFATTACH_DECL_NEW().

This commit is contained in:
tsutsui 2011-06-12 04:00:33 +00:00
parent d24f30f51b
commit 80d402d4ff
2 changed files with 4 additions and 8 deletions

View File

@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: ebus_emips.c,v 1.2 2011/06/12 03:52:13 tsutsui Exp $
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)

View File

@ -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
*/