aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/agp/intel-gtt.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2010-09-06 14:08:44 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2010-09-08 16:20:21 -0400
commit19966754328d99ee003ddfc7a8c31ceb115483ac (patch)
treec057dfaf9f9354168102e5ae450ebefbc158bd28 /drivers/char/agp/intel-gtt.c
parentac622a9cdb742cad90648d95f2c4877774518f19 (diff)
drm/i915: die, i915_probe_agp, die
Use the detection from intel-gtt.ko instead. Hooray! Also move the stolen mem allocator to the other gtt stuff in dev_prv->mem. v2: Chris Wilson noted that my error handling was crap. Fix it. He also said that this fixes a problem on his i845. Indeed, i915_probe_agp misses a special case for i830/i845 stolen mem detection. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=25476 Cc: stable@kernel.org Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/char/agp/intel-gtt.c')
-rw-r--r--drivers/char/agp/intel-gtt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-gtt.c
index 6eb64c19af0e..9cb7c98afb9c 100644
--- a/drivers/char/agp/intel-gtt.c
+++ b/drivers/char/agp/intel-gtt.c
@@ -1714,6 +1714,12 @@ int intel_gmch_probe(struct pci_dev *pdev,
1714} 1714}
1715EXPORT_SYMBOL(intel_gmch_probe); 1715EXPORT_SYMBOL(intel_gmch_probe);
1716 1716
1717struct intel_gtt *intel_gtt_get(void)
1718{
1719 return &intel_private.base;
1720}
1721EXPORT_SYMBOL(intel_gtt_get);
1722
1717void intel_gmch_remove(struct pci_dev *pdev) 1723void intel_gmch_remove(struct pci_dev *pdev)
1718{ 1724{
1719 if (intel_private.pcidev) 1725 if (intel_private.pcidev)