sh: get rid of mstp32 clock name and id
PATCH 9/9 sh: get rid of mstp32 clock name and id
From: Magnus Damm <[email protected]>
Remove the name and the id from SH_CLK_MSTP32().
Now when lookups are handled by clkdev they are
not needed anymore.
Signed-off-by Magnus Damm <[email protected]>
---
arch/sh/include/asm/clock.h | 15 ++--- arch/sh/kernel/cpu/sh4a/clock-sh7343.c | 93 +++++++++++++++----------------- arch/sh/kernel/cpu/sh4a/clock-sh7366.c | 82 ++++++++++++++-------------- arch/sh/kernel/cpu/sh4a/clock-sh7785.c | 42 +++++++------- arch/sh/kernel/cpu/sh4a/clock-sh7786.c | 58 +++++++++---------- 5 files changed, 143 insertions(+), 147 deletions(-)
arch/sh/include/asm/clock.h +6 -9
@@ -116,15 +116,12 @@ int clk_rate_table_find(struct clk *clk,struct cpufreq_frequency_table *freq_table, unsigned long rate); -#define SH_CLK_MSTP32 (_name, _id, _parent, _enable_reg, \ - _enable_bit, _flags) \ -{ \ - .name = _name, \ - .id = _id, \ - .parent = _parent, \ - .enable_reg = (void __iomem *)_enable_reg, \ - .enable_bit = _enable_bit, \ - .flags = _flags, \ +#define SH_CLK_MSTP32 (_parent, _enable_reg, _enable_bit, _flags) \ +{ \ + .parent = _parent, \ + .enable_reg = (void __iomem *)_enable_reg, \ + .enable_bit = _enable_bit, \ + .flags = _flags, \ }int sh_clk_mstp32_register (struct clk *clks,int nr);
arch/sh/kernel/cpu/sh4a/clock-sh7343.c +46 -47
111 lines not on this page · raw message
arch/sh/kernel/cpu/sh4a/clock-sh7366.c +41 -41
94 lines not on this page · raw message
arch/sh/kernel/cpu/sh4a/clock-sh7785.c +21 -21
50 lines not on this page · raw message
arch/sh/kernel/cpu/sh4a/clock-sh7786.c +29 -29
66 lines not on this page · raw message