]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915: get the bridge device once.
authorDave Airlie <airlied@redhat.com>
Tue, 4 Aug 2009 01:43:41 +0000 (11:43 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 8 Sep 2009 01:45:15 +0000 (11:45 +1000)
commitec2a4c3fdc8e82fe82a25d800e85c1ea06b74372
treeb49f3ebe3e356fa8d17f15e9a5421851cb90024b
parentf1938cd6e900a85de64184e46d841efc9efd3484
drm/i915: get the bridge device once.

The driver gets the bridge device in a number of places, upcoming
vga arb code paths need the bridge device, however they need it in
under a lock, and the pci lookup can allocate memory. So clean
this code up before then and get the bridge once for the driver lifetime.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_tiling.c