agp/intel: split out gmch/gtt probe, part 1
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 13 Apr 2010 22:29:55 +0000 (00:29 +0200)
committerEric Anholt <eric@anholt.net>
Mon, 19 Apr 2010 00:37:46 +0000 (17:37 -0700)
commit22dd82a3f5ceef72be19e502418823a2f8801ed0
tree1b346482859af7ea2128d2fd38d42c8e20a226e5
parent059efc670d1355d0c6cbf817c811ef1241adeed5
agp/intel: split out gmch/gtt probe, part 1

This is essentially the last piece of code that's tying intel-gtt.c
to intel-agp.c. Extract the probe code into it's own function so that
it can be moved to intel-gtt.c.

This requires some slight changes in the ordering of device probe function.
This patch just implements that for better bisectability in case this
introduces bugs.

The biggest change is that the gmch/gtt code doesn't execute a pci
resource fixup anymore. I've dug around in historical git trees, and
this change is to support the agp port on an old HP server with the
i440 intel chipset. So only needed for the agp driver.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/char/agp/intel-agp.c