diff options
author | Yangtao Li <frank.li@vivo.com> | 2023-07-04 16:03:07 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2023-07-20 00:31:49 +0300 |
commit | 19223ffa3d84f66ccb09a154dfa26cd40034595c (patch) | |
tree | 8470d435b36aa7140adba55820e32db8db08aeb3 /drivers/power | |
parent | 808e964e302f4e7b2a84d9f87c7cfd2bdd62a4e5 (diff) | |
download | linux-19223ffa3d84f66ccb09a154dfa26cd40034595c.tar.xz |
power: reset: msm: Convert to devm_platform_ioremap_resource()
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/reset/msm-poweroff.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/power/reset/msm-poweroff.c b/drivers/power/reset/msm-poweroff.c index 0c439f83bf65..b9a401bd280b 100644 --- a/drivers/power/reset/msm-poweroff.c +++ b/drivers/power/reset/msm-poweroff.c @@ -35,11 +35,7 @@ static void do_msm_poweroff(void) static int msm_restart_probe(struct platform_device *pdev) { - struct device *dev = &pdev->dev; - struct resource *mem; - - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - msm_ps_hold = devm_ioremap_resource(dev, mem); + msm_ps_hold = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(msm_ps_hold)) return PTR_ERR(msm_ps_hold); |