]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
irqchip/starfive: Use devm_ interfaces to simplify resource release
authorChanghuang Liang <changhuang.liang@starfivetech.com>
Thu, 16 Apr 2026 06:47:49 +0000 (23:47 -0700)
committerThomas Gleixner <tglx@kernel.org>
Thu, 30 Apr 2026 10:53:05 +0000 (12:53 +0200)
commit2f59ca1854975170c25e8c812405aa309ea4f9f7
tree0385d0d2965cbfc59307a65d8e3ef3f489afe7d5
parentac2005bba8d938c03c3856a96f20afaa42002635
irqchip/starfive: Use devm_ interfaces to simplify resource release

Use devm_ interfaces to simplify resource release. Make clock and reset get
optional as they are not used on the JHB100 SoC. Replace pr_ logging with
dev_* logging. Use __free(kfree) cleanup attribute to auto-free irqc on
error paths

Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260416064751.632138-4-changhuang.liang@starfivetech.com
drivers/irqchip/irq-starfive-jhb100-intc.c