remoteproc/mediatek: use devm_platform_ioremap_resource_byname
authorTzung-Bi Shih <tzungbi@google.com>
Wed, 27 Jan 2021 08:31:33 +0000 (16:31 +0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 9 Feb 2021 15:08:44 +0000 (09:08 -0600)
commit2e88e8fcdfcd2e5569180944789ff299114c2bf7
tree6114c386115ac0a97ae0248ffc5e79560e01d3bd
parentec8207ae39dc1f498962722d9fdea7bbc3a8233b
remoteproc/mediatek: use devm_platform_ioremap_resource_byname

Replaces platform_get_resource_byname() and devm_ioremap_resource()
pairs to devm_platform_ioremap_resource_byname().

Note that, not every pairs are applicable to replace.  Especially when
it needs to access the resource struct from
platform_get_resource_byname().
For example:
scp->sram_size = resource_size(res);

Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/r/20210127083136.3745652-2-tzungbi@google.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/mtk_scp.c