From mboxrd@z Thu Jan 1 00:00:00 1970 From: magnus.damm@gmail.com (Magnus Damm) Date: Tue, 9 Jul 2013 18:15:46 +0900 Subject: [PATCH 03/04] ARM: shmobile: Add EMEV2 and KZM9D to ARCH_SHMOBILE_MULTI In-Reply-To: <201307090937.29805.arnd@arndb.de> References: <20130709054331.14007.66068.sendpatchset@w520> <20130709054359.14007.23619.sendpatchset@w520> <201307090937.29805.arnd@arndb.de> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Arnd, On Tue, Jul 9, 2013 at 4:37 PM, Arnd Bergmann wrote: > On Tuesday 09 July 2013, Magnus Damm wrote: >> +void __init __weak emev2_clock_init(void) >> +{ >> + /* in case legacy clocks are disabled then do nothing */ >> +} > > Nitpicking: > > I don't like the __weak symbols too much, in general I prefer > doing either > > if (IS_ENABLED(CONFIG_SHMOBILE_CLOCKS) > emev2_clock_init() > > or using an inline alternative in the header file. Sure, good idea. I plan on using the following if you don't mind: if (!IS_ENABLED(CONFIG_COMMON_CLK) emev2_clock_init() Cheers, / magnus