drm/i915: use BUILD_BUG_ON to ensure platform name has been set up
authorJani Nikula <jani.nikula@intel.com>
Tue, 28 Feb 2017 11:11:43 +0000 (13:11 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 1 Mar 2017 11:11:24 +0000 (13:11 +0200)
commit9160095c0e89a4fd58b74b64645b0ceaf11d119c
tree08a807026efdad54a3aca8cd64f72b205ec7b0ff
parent0129936ddda26afd5d9d207c4e86b2425952579f
drm/i915: use BUILD_BUG_ON to ensure platform name has been set up

Leave the runtime check in place in case the platform variable itself
comes from bogus sources.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1488280303-9323-1-git-send-email-jani.nikula@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_device_info.c