diff options
| author | riastradh <riastradh@NetBSD.org> | 2022-02-12 02:40:20 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2022-02-12 02:40:20 +0000 |
| commit | 7f666118ccbdb846ccfdaae7a86c87e2a2f737aa (patch) | |
| tree | b0da206067780a3c1a5742c786d86feff17bc947 /sys/dev | |
| parent | ecb4d302b689f5687ec2636501d0b8ce979f57ae (diff) | |
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 (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/qbus/ts.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/qbus/ts.c b/sys/dev/qbus/ts.c index c0644ed3651..44a50ba4553 100644 --- a/sys/dev/qbus/ts.c +++ b/sys/dev/qbus/ts.c @@ -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 @@ const struct cdevsw ts_cdevsw = { 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 @@ tsmatch(device_t parent, cfdata_t match, void *aux) 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++) { |
