Yeah I got it, just asked that maybe you can now usejust devm_platform_ioremap_resource_byname() be used here for simplicity?Previously, virt_raw would be the "real" re-mapped pointer, and then
virt would be adjusted downward from that. It was a weird thing to
do, because the result pointed to a non-mapped address. But all uses
of the virt pointer added an offset that was enough to put the result
into the mapped range.
The new code updates all offsets to account for what the adjustment
previously did. The test that got removed isn't necessary any more.
platform_ioremap_resource_byname() instead of
platform_get_resource_byname() + ioremap() :)