diff options
Diffstat (limited to 'bsd-core/sis_drv.c')
-rw-r--r-- | bsd-core/sis_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bsd-core/sis_drv.c b/bsd-core/sis_drv.c index 55a6231c..2b6be29f 100644 --- a/bsd-core/sis_drv.c +++ b/bsd-core/sis_drv.c @@ -67,7 +67,7 @@ sis_attach(device_t nbdev) { struct drm_device *dev = device_get_softc(nbdev); - dev->driver = malloc(sizeof(struct drm_driver_info), M_DRM, + dev->driver = malloc(sizeof(struct drm_driver_info), DRM_MEM_DRIVER, M_WAITOK | M_ZERO); sis_configure(dev); @@ -83,7 +83,7 @@ sis_detach(device_t nbdev) ret = drm_detach(nbdev); - free(dev->driver, M_DRM); + free(dev->driver, DRM_MEM_DRIVER); return ret; } |