driver core: Drop helper devm_platform_ioremap_resource_wc()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 25 May 2021 10:37:11 +0000 (12:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 May 2021 13:51:33 +0000 (15:51 +0200)
commit39b27e89a76f3827ad93aed9213a6daf2b91f819
treed25deff884231e05b346b4232b16a077a4cca729
parentd52ff34ee952b68c6d08eb56f2e99b926188f9e6
driver core: Drop helper devm_platform_ioremap_resource_wc()

Since the macro was introduced in 2019 (commit bb6243b4f73d ("drivers:
platform: provide devm_platform_ioremap_resource_wc()") there is only a
single user which hardly justifies the function for the small task it
provides.

So drop the helper and open-code it in the only user. Adapt the non-wc
case accordingly.

For a all-mod-config build on amd64 this change introduces the following
changes according to bloat-o-meter:

add/remove: 0/1 grow/shrink: 1/0 up/down: 20/-252 (-232)
Function                                     old     new   delta
devm_platform_ioremap_resource_wc            252       -    -252
sram_probe                                   796     816     +20

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20210525103711.956438-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/driver-api/driver-model/devres.rst
drivers/base/platform.c
drivers/misc/sram.c
include/linux/platform_device.h