mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
drm/panfrost: Drop redundant optional clock checks in runtime PM
The clk_enable() and clk_disable() APIs already handle NULL clock pointers gracefully — clk_enable() returns 0 and clk_disable() returns immediately when passed a NULL or optional clock. The explicit if (pfdev->bus_clock) guards around these calls in the runtime suspend/resume paths are therefore unnecessary. Remove them to simplify the code. Reviewed-by: Steven Price <steven.price@arm.com> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Reviewed-by: Adrián Larumbe <adrian.larumbe@collabora.com> Link: https://patch.msgid.link/20260320164158.487406-3-biju.das.jz@bp.renesas.com Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
This commit is contained in:
parent
53b67da5f0
commit
1a14d96166
1 changed files with 4 additions and 8 deletions
Loading…
Add table
Add a link
Reference in a new issue