Don't explicitly bzer driver softc

new-bus already handles this for us.

Suggested by jhb@

Approved by:	jhb (mentor)
This commit is contained in:
rnoland 2008-10-04 14:51:14 +00:00
parent e416dd643a
commit 848f285a65
8 changed files with 0 additions and 16 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);