mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
watchdog: rzv2h: Drop runtime PM handling from WDTDCR init
WDTDCR is located in the CPG region, outside the watchdog module, and is
accessible regardless of the watchdog's clocks and reset state.
Drop the unnecessary runtime PM handling from WDTDCR initialization and
access the register directly.
Fixes: f6febd0a30 ("watchdog: Add Watchdog Timer driver for RZ/V2H(P)")
Cc: [email protected]
Signed-off-by: Lad Prabhakar <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
committed by
Guenter Roeck
parent
ca800e625d
commit
f00afd5d8d
@@ -257,20 +257,12 @@ static const struct watchdog_ops rzv2h_wdt_ops = {
|
||||
static int rzt2h_wdt_wdtdcr_init(struct platform_device *pdev,
|
||||
struct rzv2h_wdt_priv *priv)
|
||||
{
|
||||
int ret;
|
||||
|
||||
priv->wdtdcr = devm_platform_ioremap_resource(pdev, 1);
|
||||
if (IS_ERR(priv->wdtdcr))
|
||||
return PTR_ERR(priv->wdtdcr);
|
||||
|
||||
ret = pm_runtime_resume_and_get(&pdev->dev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
rzt2h_wdt_wdtdcr_count_stop(priv);
|
||||
|
||||
pm_runtime_put_sync(&pdev->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user