drm/i915: Make AGP=n work even on gen3
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 11 Nov 2013 08:35:17 +0000 (09:35 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 14 Nov 2013 00:41:30 +0000 (01:41 +0100)
Most platforms din't hit this condition, but if we want to allow
building without agp we should also make this allowed on gen3.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c

index c3e9485f38feedd4530fec8c310703785b8d5349..a19940f5ef06f367d01a42b88f49b95babdd42b9 100644 (file)
@@ -158,7 +158,7 @@ static struct drm_driver driver;
 #if IS_ENABLED(CONFIG_AGP_INTEL)
 extern int intel_agp_enabled;
 #else
-static int intel_agp_enabled;
+static int intel_agp_enabled = 1;
 #endif
 
 static const struct intel_device_info intel_i830_info = {