summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2024-11-05 18:59:00 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2024-11-05 18:59:00 +0000
commitcf732b4dbb21d38c90af004a3cf93f52b5b9e3fe (patch)
tree4b73eb10ab3c66286c94869ca0798a37c95c637d /sys/arch
parent80a6a180589321a8933ead88fa66f53793ffc19a (diff)
The first field of struct cfdriver is a pointer. Put NULL rather than 0 here.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/pci/aapic.c4
-rw-r--r--sys/arch/landisk/dev/obio.c4
-rw-r--r--sys/arch/landisk/dev/rs5c313.c4
-rw-r--r--sys/arch/sh/dev/scif.c4
-rw-r--r--sys/arch/sh/dev/shb.c4
-rw-r--r--sys/arch/sh/dev/shpcic.c4
-rw-r--r--sys/arch/sh/sh/cpu.c4
7 files changed, 14 insertions, 14 deletions
diff --git a/sys/arch/amd64/pci/aapic.c b/sys/arch/amd64/pci/aapic.c
index f65105b3692..880c01265ad 100644
--- a/sys/arch/amd64/pci/aapic.c
+++ b/sys/arch/amd64/pci/aapic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aapic.c,v 1.7 2022/02/21 11:03:39 mpi Exp $ */
+/* $OpenBSD: aapic.c,v 1.8 2024/11/05 18:58:59 miod Exp $ */
/* $NetBSD: aapic.c,v 1.3 2005/01/13 23:40:01 fvdl Exp $ */
/*
@@ -36,7 +36,7 @@ const struct cfattach aapic_ca = {
};
struct cfdriver aapic_cd = {
- 0, "aapic", DV_DULL
+ NULL, "aapic", DV_DULL
};
int
diff --git a/sys/arch/landisk/dev/obio.c b/sys/arch/landisk/dev/obio.c
index 9733a77c220..43824d2ede0 100644
--- a/sys/arch/landisk/dev/obio.c
+++ b/sys/arch/landisk/dev/obio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: obio.c,v 1.11 2022/05/10 18:04:50 kettenis Exp $ */
+/* $OpenBSD: obio.c,v 1.12 2024/11/05 18:58:59 miod Exp $ */
/* $NetBSD: obio.c,v 1.1 2006/09/01 21:26:18 uwe Exp $ */
/*-
@@ -57,7 +57,7 @@ const struct cfattach obio_ca = {
};
struct cfdriver obio_cd = {
- 0, "obio", DV_DULL
+ NULL, "obio", DV_DULL
};
int
diff --git a/sys/arch/landisk/dev/rs5c313.c b/sys/arch/landisk/dev/rs5c313.c
index 5e4b5d08dc3..d73ad5144fe 100644
--- a/sys/arch/landisk/dev/rs5c313.c
+++ b/sys/arch/landisk/dev/rs5c313.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rs5c313.c,v 1.4 2021/03/11 11:16:57 jsg Exp $ */
+/* $OpenBSD: rs5c313.c,v 1.5 2024/11/05 18:58:59 miod Exp $ */
/* $NetBSD: rs5c313.c,v 1.1 2006/09/07 01:12:00 uwe Exp $ */
/* $NetBSD: rs5c313_landisk.c,v 1.1 2006/09/07 01:55:03 uwe Exp $ */
@@ -402,7 +402,7 @@ const struct cfattach rsclock_ca = {
};
struct cfdriver rsclock_cd = {
- 0, "rsclock", DV_DULL
+ NULL, "rsclock", DV_DULL
};
int
diff --git a/sys/arch/sh/dev/scif.c b/sys/arch/sh/dev/scif.c
index bb9de324655..020fa479552 100644
--- a/sys/arch/sh/dev/scif.c
+++ b/sys/arch/sh/dev/scif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scif.c,v 1.23 2023/05/30 08:30:01 jsg Exp $ */
+/* $OpenBSD: scif.c,v 1.24 2024/11/05 18:58:59 miod Exp $ */
/* $NetBSD: scif.c,v 1.47 2006/07/23 22:06:06 ad Exp $ */
/*-
@@ -230,7 +230,7 @@ const struct cfattach scif_ca = {
};
struct cfdriver scif_cd = {
- 0, "scif", DV_DULL
+ NULL, "scif", DV_DULL
};
static int scif_attached;
diff --git a/sys/arch/sh/dev/shb.c b/sys/arch/sh/dev/shb.c
index 2e58a7b1b86..90bbd6c4394 100644
--- a/sys/arch/sh/dev/shb.c
+++ b/sys/arch/sh/dev/shb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: shb.c,v 1.3 2022/04/06 18:59:27 naddy Exp $ */
+/* $OpenBSD: shb.c,v 1.4 2024/11/05 18:58:59 miod Exp $ */
/* $NetBSD: shb.c,v 1.10 2005/12/11 12:18:58 christos Exp $ */
/*-
@@ -43,7 +43,7 @@ const struct cfattach shb_ca = {
};
struct cfdriver shb_cd = {
- 0, "shb", DV_DULL
+ NULL, "shb", DV_DULL
};
int
diff --git a/sys/arch/sh/dev/shpcic.c b/sys/arch/sh/dev/shpcic.c
index 23ea35e1661..c139fe4a83b 100644
--- a/sys/arch/sh/dev/shpcic.c
+++ b/sys/arch/sh/dev/shpcic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: shpcic.c,v 1.14 2022/04/06 18:59:27 naddy Exp $ */
+/* $OpenBSD: shpcic.c,v 1.15 2024/11/05 18:58:59 miod Exp $ */
/* $NetBSD: shpcic.c,v 1.10 2005/12/24 20:07:32 perry Exp $ */
/*
@@ -73,7 +73,7 @@ const struct cfattach shpcic_ca = {
};
struct cfdriver shpcic_cd = {
- 0, "shpcic", DV_DULL
+ NULL, "shpcic", DV_DULL
};
/* There can be only one. */
diff --git a/sys/arch/sh/sh/cpu.c b/sys/arch/sh/sh/cpu.c
index e814c1b5186..cc926132a54 100644
--- a/sys/arch/sh/sh/cpu.c
+++ b/sys/arch/sh/sh/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.6 2022/04/06 18:59:27 naddy Exp $ */
+/* $OpenBSD: cpu.c,v 1.7 2024/11/05 18:58:59 miod Exp $ */
/* $NetBSD: cpu.c,v 1.8 2006/01/02 23:16:20 uwe Exp $ */
/*-
@@ -47,7 +47,7 @@ const struct cfattach cpu_ca = {
};
struct cfdriver cpu_cd = {
- 0, "cpu", DV_DULL
+ NULL, "cpu", DV_DULL
};
struct cpu_info cpu_info_store;