Fri Feb 11 17:30:48 2022 UTC ()
playstation2: Fix some pre-device_t/softc-split device private sizes.

Nothing appears to use device_private here, so let's not allocate
anything or ask for sizeof(struct device).


(riastradh)
diff -r1.19 -r1.20 src/sys/arch/playstation2/dev/sbus.c
diff -r1.15 -r1.16 src/sys/arch/playstation2/dev/spd.c
diff -r1.18 -r1.19 src/sys/arch/playstation2/playstation2/mainbus.c

cvs diff -r1.19 -r1.20 src/sys/arch/playstation2/dev/sbus.c (expand / switch to context diff)
--- src/sys/arch/playstation2/dev/sbus.c 2021/08/07 16:19:02 1.19
+++ src/sys/arch/playstation2/dev/sbus.c 2022/02/11 17:30:48 1.20
@@ -1,4 +1,4 @@
-/*	$NetBSD: sbus.c,v 1.19 2021/08/07 16:19:02 thorpej Exp $	*/
+/*	$NetBSD: sbus.c,v 1.20 2022/02/11 17:30:48 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sbus.c,v 1.19 2021/08/07 16:19:02 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sbus.c,v 1.20 2022/02/11 17:30:48 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -85,7 +85,7 @@
 		       const int *, void *);
 STATIC int sbus_print(void *, const char *);
 
-CFATTACH_DECL_NEW(sbus, sizeof (struct device),
+CFATTACH_DECL_NEW(sbus, 0,
     sbus_match, sbus_attach, NULL, NULL);
 
 extern struct cfdriver sbus_cd;

cvs diff -r1.15 -r1.16 src/sys/arch/playstation2/dev/spd.c (expand / switch to context diff)
--- src/sys/arch/playstation2/dev/spd.c 2021/08/07 16:19:02 1.15
+++ src/sys/arch/playstation2/dev/spd.c 2022/02/11 17:30:48 1.16
@@ -1,4 +1,4 @@
-/*	$NetBSD: spd.c,v 1.15 2021/08/07 16:19:02 thorpej Exp $	*/
+/*	$NetBSD: spd.c,v 1.16 2022/02/11 17:30:48 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spd.c,v 1.15 2021/08/07 16:19:02 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spd.c,v 1.16 2022/02/11 17:30:48 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -63,7 +63,7 @@
 	const char *name;
 } __spd_table[2];
 
-CFATTACH_DECL_NEW(spd, sizeof(struct device),
+CFATTACH_DECL_NEW(spd, 0,
     spd_match, spd_attach, NULL, NULL);
 
 #ifdef DEBUG

cvs diff -r1.18 -r1.19 src/sys/arch/playstation2/playstation2/mainbus.c (expand / switch to context diff)
--- src/sys/arch/playstation2/playstation2/mainbus.c 2021/08/07 16:19:02 1.18
+++ src/sys/arch/playstation2/playstation2/mainbus.c 2022/02/11 17:30:48 1.19
@@ -1,4 +1,4 @@
-/*	$NetBSD: mainbus.c,v 1.18 2021/08/07 16:19:02 thorpej Exp $	*/
+/*	$NetBSD: mainbus.c,v 1.19 2022/02/11 17:30:48 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.18 2021/08/07 16:19:02 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.19 2022/02/11 17:30:48 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -41,7 +41,7 @@
 			  const int *, void *);
 static int mainbus_print(void *, const char *);
 
-CFATTACH_DECL_NEW(mainbus, sizeof(struct device),
+CFATTACH_DECL_NEW(mainbus, 0,
     mainbus_match, mainbus_attach, NULL, NULL);
 
 static int