Module Name: src Committed By: riastradh Date: Sat Feb 12 02:40:28 UTC 2022
Modified Files: src/sys/arch/evbppc/mpc85xx: wdc_obio.c Log Message: evbppc/wdc(4) at obio: Stop fabricating bogus struct device. Nothing uses this. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/evbppc/mpc85xx/wdc_obio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/evbppc/mpc85xx/wdc_obio.c diff -u src/sys/arch/evbppc/mpc85xx/wdc_obio.c:1.7 src/sys/arch/evbppc/mpc85xx/wdc_obio.c:1.8 --- src/sys/arch/evbppc/mpc85xx/wdc_obio.c:1.7 Mon Sep 9 22:01:23 2019 +++ src/sys/arch/evbppc/mpc85xx/wdc_obio.c Sat Feb 12 02:40:28 2022 @@ -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 @@ wdc_obio_match(device_t parent, cfdata_t 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 @@ wdc_obio_match(device_t parent, cfdata_t /* * 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);