]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
clk: mvebu: armada-37xx-periph: fix __iomem casts in structure init
authorBen Dooks <ben.dooks@codethink.co.uk>
Tue, 10 Mar 2026 12:36:25 +0000 (12:36 +0000)
committerStephen Boyd <sboyd@kernel.org>
Tue, 24 Mar 2026 00:17:08 +0000 (17:17 -0700)
commit4d0f627aa3ab47bd39b1f7e0116ef8f95e67574a
treee9ce6863f291b7abb8b4ad05bad37071a95e5d50
parent096abbb6682ee031a0f5ce9f4c71ead9fa63d31e
clk: mvebu: armada-37xx-periph: fix __iomem casts in structure init

There are a number of casts to "void __iomem *" in the initialsation
of the driver's clk information. Fix this by adding a helper macro
for the cast.

Silences a number of sparse warnings:

drivers/clk/mvebu/armada-37xx-periph.c:254:1: warning: incorrect type in initializer (different address spaces)
drivers/clk/mvebu/armada-37xx-periph.c:254:1:    expected void [noderef] __iomem *reg
drivers/clk/mvebu/armada-37xx-periph.c:254:1:    got void *
drivers/clk/mvebu/armada-37xx-periph.c:254:1: warning: incorrect type in initializer (different address spaces)
drivers/clk/mvebu/armada-37xx-periph.c:254:1:    expected void [noderef] __iomem *reg1
drivers/clk/mvebu/armada-37xx-periph.c:254:1:    got void *
drivers/clk/mvebu/armada-37xx-periph.c:254:1: warning: incorrect type in initializer (different address spaces)
drivers/clk/mvebu/armada-37xx-periph.c:254:1:    expected void [noderef] __iomem *reg2
drivers/clk/mvebu/armada-37xx-periph.c:254:1:    got void *
drivers/clk/mvebu/armada-37xx-periph.c:255:1: warning: incorrect type in initializer (different address spaces)
drivers/clk/mvebu/armada-37xx-periph.c:255:1:    expected void [noderef] __iomem *reg
drivers/clk/mvebu/armada-37xx-periph.c:255:1:    got void *
...

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mvebu/armada-37xx-periph.c