diff options
author | Cai Huoqing <caihuoqing@baidu.com> | 2021-09-08 09:17:24 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2021-10-08 21:42:41 +0200 |
commit | 76d89474310e05d9c592a8beed2aefe4d3396d2d (patch) | |
tree | aecac937f2193b798533b52e3a165ba86166c4fa /drivers/soc/tegra | |
parent | soc/tegra: Add Tegra186 ARI driver (diff) | |
download | linux-76d89474310e05d9c592a8beed2aefe4d3396d2d.tar.xz linux-76d89474310e05d9c592a8beed2aefe4d3396d2d.zip |
soc/tegra: pmc: Use devm_platform_ioremap_resource()
Use the devm_platform_ioremap_resource() helper instead of calling
platform_get_resource() and devm_ioremap_resource() separately.
Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/soc/tegra')
-rw-r--r-- | drivers/soc/tegra/pmc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/soc/tegra/pmc.c b/drivers/soc/tegra/pmc.c index 6695935a81f1..575d6d5b4294 100644 --- a/drivers/soc/tegra/pmc.c +++ b/drivers/soc/tegra/pmc.c @@ -2816,8 +2816,7 @@ static int tegra_pmc_probe(struct platform_device *pdev) return err; /* take over the memory region from the early initialization */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); |