diff options
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/drm/drm_stub.c | 2 | ||||
-rw-r--r-- | drivers/char/drm/sis_mm.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/char/drm/drm_stub.c b/drivers/char/drm/drm_stub.c index 9138b49e676e..ee83ff9efed6 100644 --- a/drivers/char/drm/drm_stub.c +++ b/drivers/char/drm/drm_stub.c | |||
@@ -72,6 +72,8 @@ static int drm_fill_in_dev(struct drm_device * dev, struct pci_dev *pdev, | |||
72 | mutex_init(&dev->struct_mutex); | 72 | mutex_init(&dev->struct_mutex); |
73 | mutex_init(&dev->ctxlist_mutex); | 73 | mutex_init(&dev->ctxlist_mutex); |
74 | 74 | ||
75 | idr_init(&dev->drw_idr); | ||
76 | |||
75 | dev->pdev = pdev; | 77 | dev->pdev = pdev; |
76 | dev->pci_device = pdev->device; | 78 | dev->pci_device = pdev->device; |
77 | dev->pci_vendor = pdev->vendor; | 79 | dev->pci_vendor = pdev->vendor; |
diff --git a/drivers/char/drm/sis_mm.c b/drivers/char/drm/sis_mm.c index 0580fa33cb77..441bbdbf1510 100644 --- a/drivers/char/drm/sis_mm.c +++ b/drivers/char/drm/sis_mm.c | |||
@@ -94,7 +94,7 @@ static int sis_fb_init(DRM_IOCTL_ARGS) | |||
94 | mutex_lock(&dev->struct_mutex); | 94 | mutex_lock(&dev->struct_mutex); |
95 | #if defined(CONFIG_FB_SIS) | 95 | #if defined(CONFIG_FB_SIS) |
96 | { | 96 | { |
97 | drm_sman_mm_t sman_mm; | 97 | struct drm_sman_mm sman_mm; |
98 | sman_mm.private = (void *)0xFFFFFFFF; | 98 | sman_mm.private = (void *)0xFFFFFFFF; |
99 | sman_mm.allocate = sis_sman_mm_allocate; | 99 | sman_mm.allocate = sis_sman_mm_allocate; |
100 | sman_mm.free = sis_sman_mm_free; | 100 | sman_mm.free = sis_sman_mm_free; |