[AGPGART] intel_agp: don't load if no IGD and AGP port
commit47d46379eb66278107947729e34a833c76dca252
authorWang Zhenyu <zhenyu.z.wang@intel.com>
Thu, 21 Jun 2007 05:43:18 +0000 (21 13:43 +0800)
committerDave Jones <davej@redhat.com>
Thu, 21 Jun 2007 16:49:11 +0000 (21 12:49 -0400)
treedcaaa9297188e15436b678167f33576c67974762
parentf1518a088bde6aea49e7c472ed6ab96178fcba3e
[AGPGART] intel_agp: don't load if no IGD and AGP port

After i915 chip, GMCH has no AGP port. Origin bridge driver in device
table will try to access illegal regs like APBASE, APSIZE, etc. This
may cause problem.

So mark them as NULL in the table, we won't load if no IGD got detect
and bridge has no AGP port.

Signed-off-by: Wang Zhenyu <zhenyu.z.wang@intel.com>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/char/agp/intel-agp.c