diff options
author | Dave Airlie <airlied@redhat.com> | 2014-04-30 19:32:21 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-04-30 19:32:21 -0400 |
commit | 444c9a08bf787e8236e132fab7eceeb2f065aa4c (patch) | |
tree | 52a117f1531f8fcc7f775cacd309d92e64c27a10 /drivers/gpu/drm/drm_stub.c | |
parent | 7e9ab4081e646fc317d0a87929a352f0e5082190 (diff) | |
parent | 3c8413951cbd8a2d855740823fc547c97b845f6f (diff) |
Merge branch 'drm-init-cleanup' of git://people.freedesktop.org/~danvet/drm into drm-next
Next pull request, this time more of the drm de-midlayering work. The big
thing is that his patch series here removes everything from drm_bus except
the set_busid callback. Thierry has a few more patches on top of this to
make that one optional to.
With that we can ditch all the non-pci drm_bus implementations, which
Thierry has already done for the fake tegra host1x drm_bus.
Reviewed by Thierry, Laurent and David and now also survived some testing
on my intel boxes to make sure the irq fumble is fixed correctly ;-) The
last minute rebase was just to add the r-b tags from Thierry for the 2
patches I've redone.
* 'drm-init-cleanup' of git://people.freedesktop.org/~danvet/drm:
drm/<drivers>: don't set driver->dev_priv_size to 0
drm: Remove dev->kdriver
drm: remove drm_bus->get_name
drm: rip out dev->devname
drm: inline drm_pci_set_unique
drm: remove bus->get_irq implementations
drm: pass the irq explicitly to drm_irq_install
drm/irq: Look up the pci irq directly in the drm_control ioctl
drm/irq: track the irq installed in drm_irq_install in dev->irq
drm: rename dev->count_lock to dev->buf_lock
drm: Rip out totally bogus vga_switcheroo->can_switch locking
drm: kill drm_bus->bus_type
drm: remove drm_dev_to_irq from drivers
drm/irq: remove cargo-culted locking from irq_install/uninstall
drm/irq: drm_control is a legacy ioctl, so pci devices only
drm/pci: fold in irq_by_busid support
drm/irq: simplify irq checks in drm_wait_vblank
Diffstat (limited to 'drivers/gpu/drm/drm_stub.c')
-rw-r--r-- | drivers/gpu/drm/drm_stub.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c index bfa6cb949545..1447b0ee3676 100644 --- a/drivers/gpu/drm/drm_stub.c +++ b/drivers/gpu/drm/drm_stub.c | |||
@@ -169,9 +169,6 @@ static void drm_master_destroy(struct kref *kref) | |||
169 | master->unique_len = 0; | 169 | master->unique_len = 0; |
170 | } | 170 | } |
171 | 171 | ||
172 | kfree(dev->devname); | ||
173 | dev->devname = NULL; | ||
174 | |||
175 | list_for_each_entry_safe(pt, next, &master->magicfree, head) { | 172 | list_for_each_entry_safe(pt, next, &master->magicfree, head) { |
176 | list_del(&pt->head); | 173 | list_del(&pt->head); |
177 | drm_ht_remove_item(&master->magiclist, &pt->hash_item); | 174 | drm_ht_remove_item(&master->magiclist, &pt->hash_item); |
@@ -572,7 +569,7 @@ struct drm_device *drm_dev_alloc(struct drm_driver *driver, | |||
572 | INIT_LIST_HEAD(&dev->maplist); | 569 | INIT_LIST_HEAD(&dev->maplist); |
573 | INIT_LIST_HEAD(&dev->vblank_event_list); | 570 | INIT_LIST_HEAD(&dev->vblank_event_list); |
574 | 571 | ||
575 | spin_lock_init(&dev->count_lock); | 572 | spin_lock_init(&dev->buf_lock); |
576 | spin_lock_init(&dev->event_lock); | 573 | spin_lock_init(&dev->event_lock); |
577 | mutex_init(&dev->struct_mutex); | 574 | mutex_init(&dev->struct_mutex); |
578 | mutex_init(&dev->ctxlist_mutex); | 575 | mutex_init(&dev->ctxlist_mutex); |
@@ -651,8 +648,6 @@ static void drm_dev_release(struct kref *ref) | |||
651 | drm_minor_free(dev, DRM_MINOR_RENDER); | 648 | drm_minor_free(dev, DRM_MINOR_RENDER); |
652 | drm_minor_free(dev, DRM_MINOR_CONTROL); | 649 | drm_minor_free(dev, DRM_MINOR_CONTROL); |
653 | 650 | ||
654 | kfree(dev->devname); | ||
655 | |||
656 | mutex_destroy(&dev->master_mutex); | 651 | mutex_destroy(&dev->master_mutex); |
657 | kfree(dev); | 652 | kfree(dev); |
658 | } | 653 | } |