[Midnightbsd-cvs] src [9779] trunk/sys: Use NULL rather than 0

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Feb 22 08:28:56 EST 2018


Revision: 9779
          http://svnweb.midnightbsd.org/src/?rev=9779
Author:   laffer1
Date:     2018-02-22 08:28:55 -0500 (Thu, 22 Feb 2018)
Log Message:
-----------
Use NULL rather than 0
Use DEVMETHOD_END
Remove unused headers.

Modified Paths:
--------------
    trunk/sys/dev/ata/ata-cbus.c
    trunk/sys/dev/ata/ata-isa.c
    trunk/sys/modules/usb/umass/Makefile
    trunk/sys/modules/usb/urio/Makefile
    trunk/sys/modules/usb/usfs/Makefile

Modified: trunk/sys/dev/ata/ata-cbus.c
===================================================================
--- trunk/sys/dev/ata/ata-cbus.c	2018-02-22 05:16:53 UTC (rev 9778)
+++ trunk/sys/dev/ata/ata-cbus.c	2018-02-22 13:28:55 UTC (rev 9779)
@@ -273,7 +273,7 @@
 
 static devclass_t ata_cbus_devclass;
 
-DRIVER_MODULE(atacbus, isa, ata_cbus_driver, ata_cbus_devclass, 0, 0);
+DRIVER_MODULE(atacbus, isa, ata_cbus_driver, ata_cbus_devclass, NULL, NULL);
 
 static int
 ata_cbuschannel_probe(device_t dev)

Modified: trunk/sys/dev/ata/ata-isa.c
===================================================================
--- trunk/sys/dev/ata/ata-isa.c	2018-02-22 05:16:53 UTC (rev 9778)
+++ trunk/sys/dev/ata/ata-isa.c	2018-02-22 13:28:55 UTC (rev 9779)
@@ -195,7 +195,7 @@
     DEVMETHOD(device_suspend,   ata_isa_suspend),
     DEVMETHOD(device_resume,    ata_isa_resume),
 
-    { 0, 0 }
+    DEVMETHOD_END
 };
 
 static driver_t ata_isa_driver = {
@@ -204,5 +204,5 @@
     sizeof(struct ata_channel),
 };
 
-DRIVER_MODULE(ata, isa, ata_isa_driver, ata_devclass, 0, 0);
+DRIVER_MODULE(ata, isa, ata_isa_driver, ata_devclass, NULL, NULL);
 MODULE_DEPEND(ata, ata, 1, 1, 1);

Modified: trunk/sys/modules/usb/umass/Makefile
===================================================================
--- trunk/sys/modules/usb/umass/Makefile	2018-02-22 05:16:53 UTC (rev 9778)
+++ trunk/sys/modules/usb/umass/Makefile	2018-02-22 13:28:55 UTC (rev 9779)
@@ -1,5 +1,5 @@
 #
-# $FreeBSD$
+# $MidnightBSD$
 #
 # Copyright (c) 2008 Hans Petter Selasky. All rights reserved.
 #
@@ -30,8 +30,7 @@
 .PATH: $S/dev/usb/storage
 
 KMOD=	umass
-SRCS=	ata_if.h bus_if.h device_if.h usb_if.h vnode_if.h \
-	opt_usb.h opt_bus.h opt_cam.h opt_ata.h ata_if.h usbdevs.h \
-	umass.c
+SRCS=   bus_if.h device_if.h opt_bus.h opt_cam.h opt_usb.h umass.c usb_if.h \
+	usbdevs.h vnode_if.h
 
 .include <bsd.kmod.mk>

Modified: trunk/sys/modules/usb/urio/Makefile
===================================================================
--- trunk/sys/modules/usb/urio/Makefile	2018-02-22 05:16:53 UTC (rev 9778)
+++ trunk/sys/modules/usb/urio/Makefile	2018-02-22 13:28:55 UTC (rev 9779)
@@ -1,5 +1,5 @@
 #
-# $FreeBSD$
+# $MidnightBSD$
 #
 # Copyright (c) 2008 Hans Petter Selasky. All rights reserved.
 #
@@ -30,8 +30,6 @@
 .PATH: $S/dev/usb/storage
 
 KMOD=	urio
-SRCS=	ata_if.h bus_if.h device_if.h usb_if.h vnode_if.h \
-	opt_usb.h opt_bus.h opt_cam.h opt_ata.h ata_if.h usbdevs.h \
-	urio.c
+SRCS=   bus_if.h device_if.h opt_bus.h opt_usb.h usb_if.h usbdevs.h urio.c
 
 .include <bsd.kmod.mk>

Modified: trunk/sys/modules/usb/usfs/Makefile
===================================================================
--- trunk/sys/modules/usb/usfs/Makefile	2018-02-22 05:16:53 UTC (rev 9778)
+++ trunk/sys/modules/usb/usfs/Makefile	2018-02-22 13:28:55 UTC (rev 9779)
@@ -1,5 +1,5 @@
 #
-# $FreeBSD$
+# $MidnightBSD$
 #
 # Copyright (c) 2008 Hans Petter Selasky. All rights reserved.
 #
@@ -30,8 +30,7 @@
 .PATH: $S/dev/usb/storage
 
 KMOD=	usfs
-SRCS=	ata_if.h bus_if.h device_if.h usb_if.h vnode_if.h \
-	opt_usb.h opt_bus.h opt_cam.h opt_ata.h ata_if.h usbdevs.h \
+SRCS=	bus_if.h device_if.h opt_bus.h opt_usb.h usb_if.h usbdevs.h \
 	ustorage_fs.c
 
 .include <bsd.kmod.mk>



More information about the Midnightbsd-cvs mailing list