]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/bios: be more explicit about discarding iomem address space
authorJani Nikula <jani.nikula@intel.com>
Wed, 13 May 2015 12:34:05 +0000 (15:34 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 May 2015 09:26:01 +0000 (11:26 +0200)
commita0d539a731a4cfc7ee5596283f58c7570680f6a0
treef0deebad50c0a962404629e83bea24f56a67a3de
parent9a944bc8d23db0069550347d26db40b39e12c264
drm/i915/bios: be more explicit about discarding iomem address space

Add one explicit discard of __iomem address space qualifier in
validate_vbt(), and respect it otherwise. This adds clarity in the code,
and reduces the sparse warnings from the module to just one.

Quoting Daniel, "The vbt really is plain old memory. Except that it's
reserved in the e820 table as something special and hence treated as io
range by the kernel. But it is memory, hence casting away the __iomem is
imo the right approach."

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_bios.c