diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2020-11-04 17:49:05 +0100 |
---|---|---|
committer | Krzysztof Kozlowski <krzk@kernel.org> | 2020-11-26 18:50:35 +0100 |
commit | 4e84d0a6e1206fda47395b5d3af1453e013d7b38 (patch) | |
tree | 73782b43f0978ff3f780494e355cb9cf714c7888 /drivers/memory/tegra/tegra20-emc.c | |
parent | memory: tegra: Add and use devm_tegra_memory_controller_get() (diff) | |
download | linux-4e84d0a6e1206fda47395b5d3af1453e013d7b38.tar.xz linux-4e84d0a6e1206fda47395b5d3af1453e013d7b38.zip |
memory: tegra: Use devm_platform_ioremap_resource()
Use devm_platform_ioremap_resource() helper which makes code a bit
cleaner.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20201104164923.21238-30-digetx@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Diffstat (limited to 'drivers/memory/tegra/tegra20-emc.c')
-rw-r--r-- | drivers/memory/tegra/tegra20-emc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/memory/tegra/tegra20-emc.c b/drivers/memory/tegra/tegra20-emc.c index 027f46287dbf..5ba4e495bfc3 100644 --- a/drivers/memory/tegra/tegra20-emc.c +++ b/drivers/memory/tegra/tegra20-emc.c @@ -654,7 +654,6 @@ static int tegra_emc_probe(struct platform_device *pdev) { struct device_node *np; struct tegra_emc *emc; - struct resource *res; int irq, err; /* driver has nothing to do in a case of memory timing absence */ @@ -689,8 +688,7 @@ static int tegra_emc_probe(struct platform_device *pdev) if (err) return err; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - emc->regs = devm_ioremap_resource(&pdev->dev, res); + emc->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(emc->regs)) return PTR_ERR(emc->regs); |