aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/twa/tw_osl_freebsd.c
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2011-11-22 21:28:20 +0000
committerMarius Strobl <marius@FreeBSD.org>2011-11-22 21:28:20 +0000
commit4b7ec27007570e0ce4fe9dbb447e7afc131b487a (patch)
tree4941db3a873a5f9b2ccc4a64c23bf5cd65516206 /sys/dev/twa/tw_osl_freebsd.c
parent21c8beb9fd4c49e791b4347f7b535315735a398a (diff)
downloadsrc-4b7ec27007570e0ce4fe9dbb447e7afc131b487a.tar.gz
src-4b7ec27007570e0ce4fe9dbb447e7afc131b487a.zip
- There's no need to overwrite the default device method with the default
one. Interestingly, these are actually the default for quite some time (bus_generic_driver_added(9) since r52045 and bus_generic_print_child(9) since r52045) but even recently added device drivers do this unnecessarily. Discussed with: jhb, marcel - While at it, use DEVMETHOD_END. Discussed with: jhb - Also while at it, use __FBSDID.
Notes
Notes: svn path=/head/; revision=227843
Diffstat (limited to 'sys/dev/twa/tw_osl_freebsd.c')
-rw-r--r--sys/dev/twa/tw_osl_freebsd.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/twa/tw_osl_freebsd.c b/sys/dev/twa/tw_osl_freebsd.c
index 5651b7fc6e69..0d018b68f8ab 100644
--- a/sys/dev/twa/tw_osl_freebsd.c
+++ b/sys/dev/twa/tw_osl_freebsd.c
@@ -25,10 +25,11 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $FreeBSD$
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
/*
* AMCC'S 3ware driver for 9000 series storage controllers.
*
@@ -195,9 +196,7 @@ static device_method_t twa_methods[] = {
DEVMETHOD(device_detach, twa_detach),
DEVMETHOD(device_shutdown, twa_shutdown),
- DEVMETHOD(bus_print_child, bus_generic_print_child),
- DEVMETHOD(bus_driver_added, bus_generic_driver_added),
- {0, 0}
+ DEVMETHOD_END
};
static driver_t twa_pci_driver = {