diff options
author | Sudeep Holla <[email protected]> | 2018-07-11 16:41:10 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2018-07-16 13:32:08 +0200 |
commit | 555e7943f2818391c12aaa4b721b4f5ebb1fd036 (patch) | |
tree | a3f755208480b7df983c406e623a49649d030161 /net/switchdev/switchdev.c | |
parent | 3772e5da445420543b25825ac2b5971f3743f6e8 (diff) |
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 <[email protected]>
Signed-off-by: Sudeep Holla <[email protected]>
Acked-by: Liviu Dudau <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions