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

Merge tag 'tegra-for-6.11-soc' of https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into soc/drivers

soc/tegra: Changes for v6.11-rc1

This is a simple change that condenses two function calls into one in
two places to save some boilerplate.

* tag 'tegra-for-6.11-soc' of https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux:
soc/tegra: pmc: Simplify resource lookup

Link: https://lore.kernel.org/r/20240628210818.3627404-1-thierry.reding@gmail.com
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

+2 -6
+2 -6
drivers/soc/tegra/pmc.c
··· 2891 2891 pmc->aotag = base; 2892 2892 pmc->scratch = base; 2893 2893 } else { 2894 - res = platform_get_resource_byname(pdev, IORESOURCE_MEM, 2895 - "wake"); 2896 - pmc->wake = devm_ioremap_resource(&pdev->dev, res); 2894 + pmc->wake = devm_platform_ioremap_resource_byname(pdev, "wake"); 2897 2895 if (IS_ERR(pmc->wake)) 2898 2896 return PTR_ERR(pmc->wake); 2899 2897 2900 - res = platform_get_resource_byname(pdev, IORESOURCE_MEM, 2901 - "aotag"); 2902 - pmc->aotag = devm_ioremap_resource(&pdev->dev, res); 2898 + pmc->aotag = devm_platform_ioremap_resource_byname(pdev, "aotag"); 2903 2899 if (IS_ERR(pmc->aotag)) 2904 2900 return PTR_ERR(pmc->aotag); 2905 2901