pwm: rockchip: Remove redundant pwmchip_remove()

The pwmchip_add() has been replaced with devm_pwmchip_add(), so the
pwmchip_remove() is needless.

Fixes: 19b3f8d830 ("pwm: rockchip: add pwm clk_osc control for wave generator mode")
Change-Id: I2f75be757fc6b8e73f376fe2ec1c251b9a2701be
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
This commit is contained in:
Damon Ding
2025-07-09 16:43:40 +08:00
parent d464908e13
commit a1d62b81ae

View File

@@ -2499,8 +2499,6 @@ static int rockchip_pwm_remove(struct platform_device *pdev)
}
}
pwmchip_remove(&pc->chip);
if (pc->oneshot_en)
clk_disable(pc->pclk);
clk_unprepare(pc->clk_osc);