Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbppc/mpc85xx evbppc/wdc(4) at obio: Stop fabricat...
details: https://anonhg.NetBSD.org/src/rev/25eacde2eaef
branches: trunk
changeset: 361142:25eacde2eaef
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Feb 12 02:40:28 2022 +0000
description:
evbppc/wdc(4) at obio: Stop fabricating bogus struct device.
Nothing uses this.
diffstat:
sys/arch/evbppc/mpc85xx/wdc_obio.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r 101592cad7ae -r 25eacde2eaef sys/arch/evbppc/mpc85xx/wdc_obio.c
--- a/sys/arch/evbppc/mpc85xx/wdc_obio.c Sat Feb 12 02:40:20 2022 +0000
+++ b/sys/arch/evbppc/mpc85xx/wdc_obio.c Sat Feb 12 02:40:28 2022 +0000
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wdc_obio.c,v 1.7 2019/09/09 22:01:23 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wdc_obio.c,v 1.8 2022/02/12 02:40:28 riastradh Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@@ -101,7 +101,6 @@
struct generic_attach_args * const ga = aux;
bus_size_t size = ga->ga_size;
struct wdc_regs wdr;
- struct device dev;
int rv = 0;
if (ga->ga_addr == OBIOCF_ADDR_DEFAULT)
@@ -112,11 +111,8 @@
/*
* We need to see if a CF is attached in True-IDE mode
*/
- memset(&dev, 0, sizeof(dev));
memset(&wdr, 0, sizeof(wdr));
- dev.dv_xname[0] = '?';
-
if (wdc_obio_initregmap(&wdr, ga->ga_bst, ga->ga_addr, size)) {
wdc_init_shadow_regs(&wdr);
rv = wdcprobe(&wdr);
Home |
Main Index |
Thread Index |
Old Index