diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2024-11-05 18:59:00 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2024-11-05 18:59:00 +0000 |
commit | cf732b4dbb21d38c90af004a3cf93f52b5b9e3fe (patch) | |
tree | 4b73eb10ab3c66286c94869ca0798a37c95c637d /sys/dev/pci | |
parent | 80a6a180589321a8933ead88fa66f53793ffc19a (diff) |
The first field of struct cfdriver is a pointer. Put NULL rather than 0 here.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/cz.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/drm/drm_drv.c | 2 | ||||
-rw-r--r-- | sys/dev/pci/drm/i915/i915_driver.c | 2 | ||||
-rw-r--r-- | sys/dev/pci/if_se.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/if_sk.c | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/pci/cz.c b/sys/dev/pci/cz.c index afb5d0a676c..b7e695c14e3 100644 --- a/sys/dev/pci/cz.c +++ b/sys/dev/pci/cz.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cz.c,v 1.29 2024/05/24 06:02:53 jsg Exp $ */ +/* $OpenBSD: cz.c,v 1.30 2024/11/05 18:58:59 miod Exp $ */ /* $NetBSD: cz.c,v 1.15 2001/01/20 19:10:36 thorpej Exp $ */ /*- @@ -192,7 +192,7 @@ int cztty_to_tiocm(struct cztty_softc *sc); void cztty_diag(void *arg); struct cfdriver cz_cd = { - 0, "cz", DV_TTY + NULL, "cz", DV_TTY }; /* diff --git a/sys/dev/pci/drm/drm_drv.c b/sys/dev/pci/drm/drm_drv.c index 6113fda273b..08d8fe36302 100644 --- a/sys/dev/pci/drm/drm_drv.c +++ b/sys/dev/pci/drm/drm_drv.c @@ -1576,7 +1576,7 @@ const struct cfattach drm_ca = { }; struct cfdriver drm_cd = { - 0, "drm", DV_DULL + NULL, "drm", DV_DULL }; const struct pci_device_id * diff --git a/sys/dev/pci/drm/i915/i915_driver.c b/sys/dev/pci/drm/i915/i915_driver.c index 5e3629934d6..a204ce69e94 100644 --- a/sys/dev/pci/drm/i915/i915_driver.c +++ b/sys/dev/pci/drm/i915/i915_driver.c @@ -2208,7 +2208,7 @@ const struct cfattach inteldrm_ca = { }; struct cfdriver inteldrm_cd = { - 0, "inteldrm", DV_DULL + NULL, "inteldrm", DV_DULL }; int inteldrm_intr(void *); diff --git a/sys/dev/pci/if_se.c b/sys/dev/pci/if_se.c index 4a5b40dc58a..18bd06c1886 100644 --- a/sys/dev/pci/if_se.c +++ b/sys/dev/pci/if_se.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_se.c,v 1.26 2024/08/31 16:23:09 deraadt Exp $ */ +/* $OpenBSD: if_se.c,v 1.27 2024/11/05 18:58:59 miod Exp $ */ /*- * Copyright (c) 2009, 2010 Christopher Zimmermann <madroach@zakweb.de> @@ -142,7 +142,7 @@ const struct cfattach se_ca = { }; struct cfdriver se_cd = { - 0, "se", DV_IFNET + NULL, "se", DV_IFNET }; uint32_t diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c index de6a448b97a..d9a08eb4646 100644 --- a/sys/dev/pci/if_sk.c +++ b/sys/dev/pci/if_sk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sk.c,v 1.199 2024/09/04 07:54:52 mglocker Exp $ */ +/* $OpenBSD: if_sk.c,v 1.200 2024/11/05 18:58:59 miod Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -2529,7 +2529,7 @@ const struct cfattach skc_ca = { }; struct cfdriver skc_cd = { - 0, "skc", DV_DULL + NULL, "skc", DV_DULL }; const struct cfattach sk_ca = { |