drm/i915/bios: fold pci rom map/unmap into copy function
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 26 Nov 2019 22:51:09 +0000 (14:51 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 2 Dec 2019 21:54:22 +0000 (13:54 -0800)
commit2cded152ad43875e8e01cef328e886861129c3a9
treea1172c311d02712adb49b01b3e6fc99a1954088a
parentfd0186ce185161915d0d51e6efd2c632571f948f
drm/i915/bios: fold pci rom map/unmap into copy function

We don't need to keep the pci rom mapped during the entire
intel_bios_init() anymore. Move it to the previous copy_vbt() function
and rename it to oprom_get_vbt() since now it's responsible to to all
operations related to get the vbt from the oprom.

v2: fix double __iomem attribute detected by sparse
v3: fix missing unmap on success (Ville)

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191126225110.8127-3-lucas.demarchi@intel.com
drivers/gpu/drm/i915/display/intel_bios.c