summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm/r128_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/drm/r128_drv.c')
-rw-r--r--sys/dev/drm/r128_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/drm/r128_drv.c b/sys/dev/drm/r128_drv.c
index bb353d4..8d29945 100644
--- a/sys/dev/drm/r128_drv.c
+++ b/sys/dev/drm/r128_drv.c
@@ -85,7 +85,7 @@ r128_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);
r128_configure(dev);
@@ -101,7 +101,7 @@ r128_detach(device_t nbdev)
ret = drm_detach(nbdev);
- free(dev->driver, M_DRM);
+ free(dev->driver, DRM_MEM_DRIVER);
return ret;
}
OpenPOWER on IntegriCloud