summaryrefslogtreecommitdiffstats
path: root/drivers/extcon
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@arm.com>2018-07-11 16:41:10 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-16 13:32:08 +0200
commit555e7943f2818391c12aaa4b721b4f5ebb1fd036 (patch)
treea3f755208480b7df983c406e623a49649d030161 /drivers/extcon
parent3772e5da445420543b25825ac2b5971f3743f6e8 (diff)
downloadlinux-stable-555e7943f2818391c12aaa4b721b4f5ebb1fd036.tar.gz
linux-stable-555e7943f2818391c12aaa4b721b4f5ebb1fd036.tar.bz2
linux-stable-555e7943f2818391c12aaa4b721b4f5ebb1fd036.zip
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>
Diffstat (limited to 'drivers/extcon')
0 files changed, 0 insertions, 0 deletions