From: Rodrigo Vivi Date: Thu, 3 Sep 2015 21:38:00 +0000 (-0700) Subject: drm/i915: Future proof uncore_init. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=22cc27bb7a47cf6ad33b983539b14bc46e65f9b2;p=linux-beck.git drm/i915: Future proof uncore_init. Unless future specs tells otherwise we can assume future gens inherit some stuff from the previous so let's handle missed cases when we know tehy should't be there and assume default equals newest one. No functional changes. v2: Remove useless case as pointed out by Ville. Cc: Ville Syrjälä Signed-off-by: Rodrigo Vivi Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_uncore.c b/drivers/gpu/drm/i915/intel_uncore.c index dec20d60daf0..440e2a5658af 100644 --- a/drivers/gpu/drm/i915/intel_uncore.c +++ b/drivers/gpu/drm/i915/intel_uncore.c @@ -1202,8 +1202,6 @@ void intel_uncore_init(struct drm_device *dev) switch (INTEL_INFO(dev)->gen) { default: - MISSING_CASE(INTEL_INFO(dev)->gen); - return; case 9: ASSIGN_WRITE_MMIO_VFUNCS(gen9); ASSIGN_READ_MMIO_VFUNCS(gen9);