drm/i915: Add dependency on the intel agp module
authorZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 23 Feb 2010 06:05:24 +0000 (14:05 +0800)
committerEric Anholt <eric@anholt.net>
Fri, 26 Feb 2010 21:23:20 +0000 (13:23 -0800)
commit1f7a6e372e9cb4d749f34c0738d832e6cadb4071
treedd9d5a80528078424dd4b3385917c3e82ee374cd
parentc619eed4b2ee1b2bde3e02464eb81632a08bb976
drm/i915: Add dependency on the intel agp module

See http://bugzilla.kernel.org/show_bug.cgi?id=15021

Make sure that the appropriate AGP module is loaded and probed before
trying to set up the DRM.  The DRM already depends on the AGP core,
but in this case we know the specific AGP driver we need too, and can
help users avoid the trap of loading the AGP driver after the DRM
driver.

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/char/agp/intel-agp.c
drivers/gpu/drm/i915/i915_drv.c