Re: [PATCH] clk: hisilicon: hi3660-stub: use devm_platform_ioremap_resource
Brian Masney <[email protected]> Mon, 20 Jul 2026 15:49:38 -0400
| Newsgroups | dev.linux.lists.llvm,org.kernel.vger.linux-clk,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Jul 19, 2026 at 02:54:56PM -0700, Rosen Penev wrote: > Replace the open-coded platform_get_resource() plus devm_ioremap() > sequence with devm_platform_ioremap_resource(), which fetches the > resource, requests the region and maps it in one call. Switch the error > check to IS_ERR()/PTR_ERR() and drop the now-unused struct resource > pointer. > > The only in-tree user (stub_clock@e896b500 in hi3660.dtsi) has a single > 0x100-byte reg region, so the region reservation added by > devm_ioremap_resource() is exclusive and does not introduce overlap > failures. > > Built for ARM (drivers/clk/hisilicon/clk-hi3660-stub.o) with LLVM=1. > > Assisted-by: opencode:hy3-free > Signed-off-by: Rosen Penev <[email protected]> Reviewed-by: Brian Masney <[email protected]>