ARMv7 Vexpress update/cleanup for v4.19

Just single cleanup patch to use devm_ioremap_resource in place of
 devm_request_mem_region and devm_ioremap.
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIcBAABCAAGBQJbSKkHAAoJEABBurwxfuKYPHoQAJstzRmvag3mMY6ezenR0M2X
 sw8MOAB4gzwcZ0jWiK2iIj6NYC2gh4JQu2PTB2/DxIjRxnLDBbxM2wfigszwTYg7
 T38BnWuQdtkhBrQrSrPxHz/J2uuEeVyYkjSXmTkM9KQJCTR4WoxEzpagt2bCqSdX
 ctfJv0CjlY4L5xsuPiamwhv/qDEbXDZkfr10AJE5KZIclasB/TBmZGsWXB+QMqYg
 ffqjg3H86PxghqiKV/N4HN3OXH+aj+Sck9bLK22QXF4N8+qQAb2r+dScnWDNqYUN
 pLs3hrrCChTS13/0NTcHpxsUlF65dlyfKis7pos3XLd/tIDQSV4FkDa8et4Ae9/U
 CQGsX6SoBeW0AvDe8Fpc/XeL+gfPSrzpkGpAYTobsCsWT4O18C50VuKAiF6a4Kym
 HrQ+RXqUkCgSe6VFaR4p1Tg3asIK/qPUSIu7m8YbTc/rzX8OYvGpdBAlrpS5kseX
 eEzZQM9ubkj1qY5J3OTwLrZrpQhmIm0/t9EHWcFzb0wqKmo1eDNPciLpYFAk/oFV
 6btis8xk9J0M1Qm81PJnIQKamuQwKLYd7KgHwYwRlMI7oTOnmIuZ9EJwzbHkUweR
 l4H50qb9zE0KOCXxtDLKw8hhFtxo6m0nSXXCO+CwjK1ZyR8siLlySsm2wjWh5BNR
 10LnwuYyL3wEAscUsNfD
 =SjHD
 -----END PGP SIGNATURE-----

Merge tag 'vexpress-update-4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux into next/drivers

ARMv7 Vexpress update/cleanup for v4.19

Just single cleanup patch to use devm_ioremap_resource in place of
devm_request_mem_region and devm_ioremap.

* tag 'vexpress-update-4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux:
  misc: vexpress/syscfg: Use devm_ioremap_resource() to map memory

Signed-off-by: Olof Johansson <olof@lixom.net>
This commit is contained in:
Olof Johansson 2018-07-14 14:43:05 -07:00
commit 4726245505

View File

@ -258,13 +258,9 @@ static int vexpress_syscfg_probe(struct platform_device *pdev)
INIT_LIST_HEAD(&syscfg->funcs);
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!devm_request_mem_region(&pdev->dev, res->start,
resource_size(res), pdev->name))
return -EBUSY;
syscfg->base = devm_ioremap(&pdev->dev, res->start, resource_size(res));
if (!syscfg->base)
return -EFAULT;
syscfg->base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(syscfg->base))
return PTR_ERR(syscfg->base);
/* Must use dev.parent (MFD), as that's where DT phandle points at... */
bridge = vexpress_config_bridge_register(pdev->dev.parent,