OSDN Git Service

misc: vexpress/syscfg: Use devm_ioremap_resource() to map memory
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 11 Jul 2018 15:41:10 +0000 (16:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2018 11:32:08 +0000 (13:32 +0200)
commit555e7943f2818391c12aaa4b721b4f5ebb1fd036
treea3f755208480b7df983c406e623a49649d030161
parent3772e5da445420543b25825ac2b5971f3743f6e8
misc: vexpress/syscfg: Use devm_ioremap_resource() to map memory

Instead of checking the return value of platform_get_resource(), we can
use devm_ioremap_resource() which has the NULL pointer check and the
memory region requesting. devm_ioremap_resource is designed to replace
calls to devm_request_mem_region followed by devm_ioremap, so let's use
the same.

Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/vexpress-syscfg.c