From: Daniel Vetter Date: Fri, 8 Jun 2012 13:55:40 +0000 (+0200) Subject: drm/i915 + agp/intel-gtt: prep work for direct setup X-Git-Tag: v3.6-rc1~83^2~42^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14be93ddff61eb196382aeaa3ac86f4db844aeb0;p=pandora-kernel.git drm/i915 + agp/intel-gtt: prep work for direct setup To be able to directly set up the intel-gtt code from drm/i915 and avoid setting up the fake-agp driver we need to prepare a few things: - pass both the bridge and gpu pci_dev to the probe function and add code to handle the gpu pdev both being present (for drm/i915) and not present (fake agp). - add refcounting to the remove function so that unloading drm/i915 doesn't kill the fake agp driver v2: Fix up the cleanup and refcount, noticed by Jani Nikula. Reviewed-by: Jani Nikula Signed-Off-by: Daniel Vetter --- Reading git-diff-tree failed