Skip to content

Commit 76d8947

Browse files
caihuoqing1990thierryreding
authored andcommitted
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 <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 2996219 commit 76d8947

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/soc/tegra/pmc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2816,8 +2816,7 @@ static int tegra_pmc_probe(struct platform_device *pdev)
28162816
return err;
28172817

28182818
/* 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);
28212820
if (IS_ERR(base))
28222821
return PTR_ERR(base);
28232822

0 commit comments

Comments
 (0)