Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Aug 2013 23:30:32 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r253900 - head/sys/dev/scc
Message-ID:  <201308022330.r72NUWj5046971@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Fri Aug  2 23:30:32 2013
New Revision: 253900
URL: http://svnweb.freebsd.org/changeset/base/253900

Log:
  - Use NULL instead of 0 for pointers.
  - Remove unnecessary __RMAN_RESOURCE_VISIBLE.

Modified:
  head/sys/dev/scc/scc_bfe_ebus.c
  head/sys/dev/scc/scc_bfe_macio.c
  head/sys/dev/scc/scc_bfe_quicc.c
  head/sys/dev/scc/scc_bfe_sbus.c

Modified: head/sys/dev/scc/scc_bfe_ebus.c
==============================================================================
--- head/sys/dev/scc/scc_bfe_ebus.c	Fri Aug  2 23:28:49 2013	(r253899)
+++ head/sys/dev/scc/scc_bfe_ebus.c	Fri Aug  2 23:30:32 2013	(r253900)
@@ -94,4 +94,4 @@ static driver_t scc_ebus_driver = {
 	sizeof(struct scc_softc),
 };
 
-DRIVER_MODULE(scc, ebus, scc_ebus_driver, scc_devclass, 0, 0);
+DRIVER_MODULE(scc, ebus, scc_ebus_driver, scc_devclass, NULL, NULL);

Modified: head/sys/dev/scc/scc_bfe_macio.c
==============================================================================
--- head/sys/dev/scc/scc_bfe_macio.c	Fri Aug  2 23:28:49 2013	(r253899)
+++ head/sys/dev/scc/scc_bfe_macio.c	Fri Aug  2 23:30:32 2013	(r253900)
@@ -90,4 +90,4 @@ static driver_t scc_macio_driver = {
 	sizeof(struct scc_softc),
 };
 
-DRIVER_MODULE(scc, macio, scc_macio_driver, scc_devclass, 0, 0);
+DRIVER_MODULE(scc, macio, scc_macio_driver, scc_devclass, NULL, NULL);

Modified: head/sys/dev/scc/scc_bfe_quicc.c
==============================================================================
--- head/sys/dev/scc/scc_bfe_quicc.c	Fri Aug  2 23:28:49 2013	(r253899)
+++ head/sys/dev/scc/scc_bfe_quicc.c	Fri Aug  2 23:30:32 2013	(r253900)
@@ -27,8 +27,6 @@
 #include <sys/cdefs.h>
 __FBSDID("$FreeBSD$");
 
-#define	__RMAN_RESOURCE_VISIBLE
-
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/bus.h>
@@ -98,4 +96,4 @@ static driver_t scc_quicc_driver = {
 	sizeof(struct scc_softc),
 };
 
-DRIVER_MODULE(scc, quicc, scc_quicc_driver, scc_devclass, 0, 0);
+DRIVER_MODULE(scc, quicc, scc_quicc_driver, scc_devclass, NULL, NULL);

Modified: head/sys/dev/scc/scc_bfe_sbus.c
==============================================================================
--- head/sys/dev/scc/scc_bfe_sbus.c	Fri Aug  2 23:28:49 2013	(r253899)
+++ head/sys/dev/scc/scc_bfe_sbus.c	Fri Aug  2 23:30:32 2013	(r253900)
@@ -90,5 +90,5 @@ static driver_t scc_sbus_driver = {
 	sizeof(struct scc_softc),
 };
 
-DRIVER_MODULE(scc, fhc, scc_sbus_driver, scc_devclass, 0, 0);
-DRIVER_MODULE(scc, sbus, scc_sbus_driver, scc_devclass, 0, 0);
+DRIVER_MODULE(scc, fhc, scc_sbus_driver, scc_devclass, NULL, NULL);
+DRIVER_MODULE(scc, sbus, scc_sbus_driver, scc_devclass, NULL, NULL);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308022330.r72NUWj5046971>