Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/playstation2 playstation2: Fix some pre-device_t/so...
details: https://anonhg.NetBSD.org/src/rev/4b86f8fa6470
branches: trunk
changeset: 361121:4b86f8fa6470
user: riastradh <riastradh%NetBSD.org@localhost>
date: Fri Feb 11 17:30:48 2022 +0000
description:
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).
diffstat:
sys/arch/playstation2/dev/sbus.c | 6 +++---
sys/arch/playstation2/dev/spd.c | 6 +++---
sys/arch/playstation2/playstation2/mainbus.c | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
diffs (81 lines):
diff -r d7c08ac08846 -r 4b86f8fa6470 sys/arch/playstation2/dev/sbus.c
--- a/sys/arch/playstation2/dev/sbus.c Fri Feb 11 17:26:55 2022 +0000
+++ b/sys/arch/playstation2/dev/sbus.c Fri Feb 11 17:30:48 2022 +0000
@@ -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;
diff -r d7c08ac08846 -r 4b86f8fa6470 sys/arch/playstation2/dev/spd.c
--- a/sys/arch/playstation2/dev/spd.c Fri Feb 11 17:26:55 2022 +0000
+++ b/sys/arch/playstation2/dev/spd.c Fri Feb 11 17:30:48 2022 +0000
@@ -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
diff -r d7c08ac08846 -r 4b86f8fa6470 sys/arch/playstation2/playstation2/mainbus.c
--- a/sys/arch/playstation2/playstation2/mainbus.c Fri Feb 11 17:26:55 2022 +0000
+++ b/sys/arch/playstation2/playstation2/mainbus.c Fri Feb 11 17:30:48 2022 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index