clk: nxp: Remove an unused field in struct lpc18xx_pll
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 1 Apr 2024 15:31:53 +0000 (17:31 +0200)
committerStephen Boyd <sboyd@kernel.org>
Thu, 4 Apr 2024 15:43:10 +0000 (08:43 -0700)
In "struct lpc18xx_pll", the 'lock' field is unused.
Remove it.

Found with cppcheck, unusedStructMember.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/6cfb0e5251c3a59a156e70bcf6a0cc74aa764faa.1711985490.git.christophe.jaillet@wanadoo.fr
Acked-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/nxp/clk-lpc18xx-cgu.c

index 69ebf65081b81f42f68755ee55a114d88ce14ce0..81efa885069b2af3d2ea5d71f4db5e3d94561cc6 100644 (file)
@@ -250,7 +250,6 @@ static struct lpc18xx_cgu_base_clk lpc18xx_cgu_base_clks[] = {
 struct lpc18xx_pll {
        struct          clk_hw hw;
        void __iomem    *reg;
-       spinlock_t      *lock;
        u8              flags;
 };