Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/qbus ts(4): Skip fabricating bogus struct device in ...
details: https://anonhg.NetBSD.org/src/rev/101592cad7ae
branches: trunk
changeset: 361141:101592cad7ae
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Feb 12 02:40:20 2022 +0000
description:
ts(4): Skip fabricating bogus struct device in tsmatch.
Doesn't appear to be used anywhere in tsmatch. Let's not invent
bogus autoconf guts here.
diffstat:
sys/dev/qbus/ts.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r ea4c857643ac -r 101592cad7ae sys/dev/qbus/ts.c
--- a/sys/dev/qbus/ts.c Sat Feb 12 01:23:44 2022 +0000
+++ b/sys/dev/qbus/ts.c Sat Feb 12 02:40:20 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ts.c,v 1.34 2022/01/01 10:32:29 msaitoh Exp $ */
+/* $NetBSD: ts.c,v 1.35 2022/02/12 02:40:20 riastradh Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ts.c,v 1.34 2022/01/01 10:32:29 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ts.c,v 1.35 2022/02/12 02:40:20 riastradh Exp $");
#undef TSDEBUG
@@ -215,7 +215,6 @@
int
tsmatch(device_t parent, cfdata_t match, void *aux)
{
- struct device tsdev;
struct ts_softc ssc;
struct ts_softc *sc = &ssc;
struct uba_attach_args *ua = aux;
@@ -224,9 +223,7 @@
sc->sc_iot = ua->ua_iot;
sc->sc_ioh = ua->ua_ioh;
sc->sc_mapped = 0;
- sc->sc_dev = &tsdev;
sc->sc_uh = device_private(parent);
- strcpy(sc->sc_dev->dv_xname, "ts");
/* Try to reset the device */
for (i = 0; i < 3; i++) {
Home |
Main Index |
Thread Index |
Old Index