Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Cai Huoqing and committed by
Thierry Reding
76d89474 29962197

+1 -2
+1 -2
drivers/soc/tegra/pmc.c
··· 2816 2816 return err; 2817 2817 2818 2818 /* take over the memory region from the early initialization */ 2819 - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 2820 - base = devm_ioremap_resource(&pdev->dev, res); 2819 + base = devm_platform_ioremap_resource(pdev, 0); 2821 2820 if (IS_ERR(base)) 2822 2821 return PTR_ERR(base); 2823 2822