From 848f285a655e18bcbd21886fa35dbab3286b54e4 Mon Sep 17 00:00:00 2001 From: rnoland Date: Sat, 4 Oct 2008 14:51:14 +0000 Subject: Don't explicitly bzer driver softc new-bus already handles this for us. Suggested by jhb@ Approved by: jhb (mentor) --- sys/dev/drm/i915_drv.c | 2 -- sys/dev/drm/mach64_drv.c | 2 -- sys/dev/drm/mga_drv.c | 2 -- sys/dev/drm/r128_drv.c | 2 -- sys/dev/drm/radeon_drv.c | 2 -- sys/dev/drm/savage_drv.c | 2 -- sys/dev/drm/sis_drv.c | 2 -- sys/dev/drm/tdfx_drv.c | 2 -- 8 files changed, 16 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/drm/i915_drv.c b/sys/dev/drm/i915_drv.c index d2795a3..ad213e5 100644 --- a/sys/dev/drm/i915_drv.c +++ b/sys/dev/drm/i915_drv.c @@ -112,8 +112,6 @@ i915_attach(device_t nbdev) { struct drm_device *dev = device_get_softc(nbdev); - bzero(dev, sizeof(struct drm_device)); - dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM, M_WAITOK | M_ZERO); diff --git a/sys/dev/drm/mach64_drv.c b/sys/dev/drm/mach64_drv.c index b312f48..7ab9683 100644 --- a/sys/dev/drm/mach64_drv.c +++ b/sys/dev/drm/mach64_drv.c @@ -86,8 +86,6 @@ mach64_attach(device_t nbdev) { struct drm_device *dev = device_get_softc(nbdev); - bzero(dev, sizeof(struct drm_device)); - dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM, M_WAITOK | M_ZERO); diff --git a/sys/dev/drm/mga_drv.c b/sys/dev/drm/mga_drv.c index f3d9cae..308269a 100644 --- a/sys/dev/drm/mga_drv.c +++ b/sys/dev/drm/mga_drv.c @@ -130,8 +130,6 @@ mga_attach(device_t nbdev) { struct drm_device *dev = device_get_softc(nbdev); - bzero(dev, sizeof(struct drm_device)); - dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM, M_WAITOK | M_ZERO); diff --git a/sys/dev/drm/r128_drv.c b/sys/dev/drm/r128_drv.c index ad4da43..bb353d4 100644 --- a/sys/dev/drm/r128_drv.c +++ b/sys/dev/drm/r128_drv.c @@ -85,8 +85,6 @@ r128_attach(device_t nbdev) { struct drm_device *dev = device_get_softc(nbdev); - bzero(dev, sizeof(struct drm_device)); - dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM, M_WAITOK | M_ZERO); diff --git a/sys/dev/drm/radeon_drv.c b/sys/dev/drm/radeon_drv.c index caddf1e..cc248b2 100644 --- a/sys/dev/drm/radeon_drv.c +++ b/sys/dev/drm/radeon_drv.c @@ -90,8 +90,6 @@ radeon_attach(device_t nbdev) { struct drm_device *dev = device_get_softc(nbdev); - bzero(dev, sizeof(struct drm_device)); - dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM, M_WAITOK | M_ZERO); diff --git a/sys/dev/drm/savage_drv.c b/sys/dev/drm/savage_drv.c index aa0103f..bdd1b49 100644 --- a/sys/dev/drm/savage_drv.c +++ b/sys/dev/drm/savage_drv.c @@ -76,8 +76,6 @@ savage_attach(device_t nbdev) { struct drm_device *dev = device_get_softc(nbdev); - bzero(dev, sizeof(struct drm_device)); - dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM, M_WAITOK | M_ZERO); diff --git a/sys/dev/drm/sis_drv.c b/sys/dev/drm/sis_drv.c index c17557e..9f854df 100644 --- a/sys/dev/drm/sis_drv.c +++ b/sys/dev/drm/sis_drv.c @@ -70,8 +70,6 @@ sis_attach(device_t nbdev) { struct drm_device *dev = device_get_softc(nbdev); - bzero(dev, sizeof(struct drm_device)); - dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM, M_WAITOK | M_ZERO); diff --git a/sys/dev/drm/tdfx_drv.c b/sys/dev/drm/tdfx_drv.c index 14bde23..729ebf4 100644 --- a/sys/dev/drm/tdfx_drv.c +++ b/sys/dev/drm/tdfx_drv.c @@ -72,8 +72,6 @@ tdfx_attach(device_t nbdev) { struct drm_device *dev = device_get_softc(nbdev); - bzero(dev, sizeof(struct drm_device)); - dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM, M_WAITOK | M_ZERO); -- cgit v1.1