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
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
2 matches
Mail list logo