diff options
author | José Roberto de Souza <jose.souza@intel.com> | 2018-12-01 02:20:47 +0300 |
---|---|---|
committer | José Roberto de Souza <jose.souza@intel.com> | 2018-12-04 01:55:39 +0300 |
commit | e1bf094b3c7514934168dcb69f18b65aacb5a953 (patch) | |
tree | fd8e655c0df5570871894783fd805f4bb1e6e8f6 /drivers/gpu/drm/i915/intel_bios.c | |
parent | ae9e7ced4f7b0e9d1646844b4713d6b60e9b3f65 (diff) | |
download | linux-e1bf094b3c7514934168dcb69f18b65aacb5a953.tar.xz |
drm/i915: Add HAS_DISPLAY() and use it
Right now it is decided if GEN has display by checking the num_pipes,
so lets make it explicit and use a macro.
Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181130232048.14216-1-jose.souza@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_bios.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_bios.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c index 0694aa8bb9bc..6d3e0260d49c 100644 --- a/drivers/gpu/drm/i915/intel_bios.c +++ b/drivers/gpu/drm/i915/intel_bios.c @@ -1752,7 +1752,7 @@ void intel_bios_init(struct drm_i915_private *dev_priv) const struct bdb_header *bdb; u8 __iomem *bios = NULL; - if (INTEL_INFO(dev_priv)->num_pipes == 0) { + if (!HAS_DISPLAY(dev_priv)) { DRM_DEBUG_KMS("Skipping VBT init due to disabled display.\n"); return; } |