[PATCH -next] ARM: zx: Use devm_platform_ioremap_resource()

2020-09-18 Thread Wang ShaoBo
Make use of devm_platform_ioremap_resource() provided by driver core platform instead of duplicated analogue. dev_err() is removed because it has been done in devm_ioremap_resource(). Signed-off-by: Wang ShaoBo --- arch/arm/mach-zx/zx296702-pm-domain.c | 13 ++--- 1 file changed, 2 inser

[PATCH -next] ARM: zx: use devm_platform_ioremap_resource

2020-09-15 Thread Qinglang Miao
Use the helper function that wraps the calls to platform_get_resource() and devm_ioremap_resource() together. Note that error handling on the result of a call to platform_get_resource() is unneeded either when the value is passed to devm_ioremap_resource(), so remove it. Signed-off-by: Qinglang Mi