bus: hisi_lpc: Use devm_platform_ioremap_resource
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 5 Sep 2022 08:23:03 +0000 (16:23 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Thu, 8 Sep 2022 02:27:29 +0000 (02:27 +0000)
commit23bea44cd00c618dca7877366cf8a5340ac110e9
tree33c2a9a8b755b5c5ce410734830e4b65fb1e46f5
parent947f11d153f20f87828a15e829d69890db71bcf7
bus: hisi_lpc: Use devm_platform_ioremap_resource

The struct resource is not used for anything else, so we can simplify
the code a bit by using the helper function.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
drivers/bus/hisi_lpc.c