summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrnoland <rnoland@FreeBSD.org>2008-10-04 14:51:14 +0000
committerrnoland <rnoland@FreeBSD.org>2008-10-04 14:51:14 +0000
commit848f285a655e18bcbd21886fa35dbab3286b54e4 (patch)
tree9bd8c901aa0c07d251f75e92bb72150b4e9ebb74
parente416dd643a947a6b0b74b8cd709467a599dc72c8 (diff)
downloadFreeBSD-src-848f285a655e18bcbd21886fa35dbab3286b54e4.zip
FreeBSD-src-848f285a655e18bcbd21886fa35dbab3286b54e4.tar.gz
Don't explicitly bzer driver softc
new-bus already handles this for us. Suggested by jhb@ Approved by: jhb (mentor)
-rw-r--r--sys/dev/drm/i915_drv.c2
-rw-r--r--sys/dev/drm/mach64_drv.c2
-rw-r--r--sys/dev/drm/mga_drv.c2
-rw-r--r--sys/dev/drm/r128_drv.c2
-rw-r--r--sys/dev/drm/radeon_drv.c2
-rw-r--r--sys/dev/drm/savage_drv.c2
-rw-r--r--sys/dev/drm/sis_drv.c2
-rw-r--r--sys/dev/drm/tdfx_drv.c2
8 files changed, 0 insertions, 16 deletions
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);
OpenPOWER on IntegriCloud