From mboxrd@z Thu Jan 1 00:00:00 1970 From: Angelo Dureghello Date: Sun, 01 Nov 2015 16:07:09 +0100 Subject: [U-Boot] [PATCH V2] common: Simplify get_clocks() #ifdef In-Reply-To: <1446197402-1564-1-git-send-email-Peng.Fan@freescale.com> References: <1446197402-1564-1-git-send-email-Peng.Fan@freescale.com> Message-ID: <56362A9D.8010107@sysam.it> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Peng, On 30/10/2015 10:30, Peng Fan wrote: > get_clocks is wrapped by CONFIG_FSL_CLK and CONFIG_M68K in seperate > piece code. They can be merged into one snippet. > > Signed-off-by: Peng Fan > Cc: Tom Rini > Cc: Simon Glass > Cc: Bin Meng > Cc: Alexey Brodkin > Cc: "angelo at sysam.it" > Cc: Daniel Schwierzeck > Cc: Stephen Warren > Cc: "Andreas Bie?mann" > Reviewed-by: Simon Glass > --- > > Changes V2: > Refine patch subject as Simon suggested. > Add Simon's Reviewed-by > > common/board_f.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/common/board_f.c b/common/board_f.c > index 486e828..7bc05b1 100644 > --- a/common/board_f.c > +++ b/common/board_f.c > @@ -806,10 +806,7 @@ static init_fnc_t init_sequence_f[] = { > #if defined(CONFIG_BOARD_POSTCLK_INIT) > board_postclk_init, > #endif > -#ifdef CONFIG_FSL_CLK > - get_clocks, > -#endif > -#ifdef CONFIG_M68K > +#if defined(CONFIG_FSL_CLK) || defined(CONFIG_M68K) > get_clocks, > #endif > env_init, /* initialize environment */ > change is ok for me. Acked-by: Angelo Dureghello