Module Name: src Committed By: riastradh Date: Mon May 25 17:56:19 UTC 2020
Modified Files: src/sys/arch/evbmips/loongson/dev: kb3310.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/evbmips/loongson/dev/kb3310.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/evbmips/loongson/dev/kb3310.c diff -u src/sys/arch/evbmips/loongson/dev/kb3310.c:1.2 src/sys/arch/evbmips/loongson/dev/kb3310.c:1.3 --- src/sys/arch/evbmips/loongson/dev/kb3310.c:1.2 Sat Oct 27 17:17:50 2012 +++ src/sys/arch/evbmips/loongson/dev/kb3310.c Mon May 25 17:56:19 2020 @@ -99,9 +99,8 @@ extern void loongson_set_isa_imr(uint); 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);