Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbmips/loongson/dev Switch to CFATTACH_DECL_NEW.



details:   https://anonhg.NetBSD.org/src/rev/1c6720a0f70b
branches:  trunk
changeset: 933484:1c6720a0f70b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon May 25 17:56:19 2020 +0000

description:
Switch to CFATTACH_DECL_NEW.

This driver doesn't compile -- never has since it was imported from
OpenBSD -- but in case anyone wants to make it work, let's leave fewer
landmines to step on.

diffstat:

 sys/arch/evbmips/loongson/dev/kb3310.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (15 lines):

diff -r c11f496bebe0 -r 1c6720a0f70b sys/arch/evbmips/loongson/dev/kb3310.c
--- a/sys/arch/evbmips/loongson/dev/kb3310.c    Mon May 25 15:37:50 2020 +0000
+++ b/sys/arch/evbmips/loongson/dev/kb3310.c    Mon May 25 17:56:19 2020 +0000
@@ -99,9 +99,8 @@
 int    ykbec_match(device_t, cfdata_t, void *);
 void   ykbec_attach(device_t, device_t, void *);
 
-const struct cfattach ykbec_ca = {
-       sizeof(struct ykbec_softc), ykbec_match, ykbec_attach
-};
+CFATTACH_DECL_NEW(ykbec, sizeof(struct ykbec_softc),
+    ykbec_match, ykbec_attach, NULL, NULL);
 
 int    ykbec_apminfo(struct apm_power_info *);
 void   ykbec_bell(void *, u_int, u_int, u_int, int);



Home | Main Index | Thread Index | Old Index