]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/misc/sram.c
misc: sram: use devm_platform_ioremap_resource_wc()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 22 Oct 2019 08:43:15 +0000 (10:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Nov 2019 17:32:47 +0000 (18:32 +0100)
commit444b0111f3bc8f3b2bc83dc15f85123034a79bc2
tree013543d4a18150f9480a745dbd0a044105156a5a
parentbb6243b4f73d29f8c8faf8f805a2042ac3973b71
misc: sram: use devm_platform_ioremap_resource_wc()

Use the new devm_platform_ioremap_resource_wc() helper instead of
devm_ioremap_wc() combinded with a call to platform_get_resource().
Also use devm_platform_ioremap_resource() where applicable.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20191022084318.22256-6-brgl@bgdev.pl
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/sram.c