From mboxrd@z Thu Jan 1 00:00:00 1970 From: mturquette@baylibre.com (Michael Turquette) Date: Wed, 13 Jul 2016 14:32:34 -0700 Subject: [PATCH v2 6/7] gxbb: clk: Move MESON_GATE macro to gxbb In-Reply-To: <1468432181-9550-7-git-send-email-serveralex@gmail.com> References: <1468432181-9550-1-git-send-email-serveralex@gmail.com> <1468432181-9550-7-git-send-email-serveralex@gmail.com> Message-ID: <146844555421.73491.17534974282265619018@resonance> To: linus-amlogic@lists.infradead.org List-Id: linus-amlogic.lists.infradead.org Hi Alexander, Quoting Alexander M?ller (2016-07-13 10:49:40) > Signed-off-by: Alexander M?ller > --- > drivers/clk/meson/clkc.h | 14 ---- > drivers/clk/meson/gxbb.c | 176 +++++++++++++++++++++++++---------------------- > 2 files changed, 95 insertions(+), 95 deletions(-) > > diff --git a/drivers/clk/meson/clkc.h b/drivers/clk/meson/clkc.h > index 53326c3..061a01e 100644 > --- a/drivers/clk/meson/clkc.h > +++ b/drivers/clk/meson/clkc.h > @@ -97,20 +97,6 @@ struct meson_clk_mpll { > spinlock_t *lock; > }; > > -#define MESON_GATE(_name, _reg, _bit) \ > -struct clk_gate gxbb_##_name = { \ Please leave this macro in clkc.h, but change the above line to: #define MESON_GATE(_name, _reg, _bit) \ struct clk_gate _name = { \ Note that gxbb_##_name is replaced with _name. I should have done it like this from the beginning but it's a bit of a brain fart. > /* Everything Else (EE) domain gates */ > -static MESON_GATE(ddr, HHI_GCLK_MPEG0, 0); Then reflow the above gxbb gate clock like so: static MESON_GATE(gxbb_ddr, HHI_GCLK_MPEG0, 0); Then you can re-use the same macro in your meson8b driver by prefixing all of your gate clocks with "meson8b_". Regards, Mike