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:
parent
e416dd643a
commit
848f285a65
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user