diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2018-07-11 16:17:39 +0100 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2018-07-12 18:06:01 +0100 |
commit | cc4aecc5b724b47df65ef3e218ac7d73d2ee4e09 (patch) | |
tree | b32d8d154200b26f9ce028fe5ad0cb852644d8ef /drivers/hwmon/adt7470.c | |
parent | ce397d215ccd07b8ae3f71db689aedb85d56ab40 (diff) | |
download | linux-cc4aecc5b724b47df65ef3e218ac7d73d2ee4e09.tar.gz linux-cc4aecc5b724b47df65ef3e218ac7d73d2ee4e09.tar.bz2 linux-cc4aecc5b724b47df65ef3e218ac7d73d2ee4e09.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>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/hwmon/adt7470.c')
0 files changed, 0 insertions, 0 deletions