From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Fri, 21 May 2010 13:11:50 -0500 Subject: [U-Boot] [PATCH] mpc85xx: add function prototypes for sys and ddr clocks to speed.c In-Reply-To: <1274465254-9002-1-git-send-email-timur@freescale.com> References: <1274465254-9002-1-git-send-email-timur@freescale.com> Message-ID: <4BF6CCE6.1080109@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 05/21/2010 01:07 PM, Timur Tabi wrote: > On most Freescale 85xx boards, the CONFIG_SYS_CLK_FREQ and CONFIG_DDR_CLK_FREQ > macros are defined like this: Like what? > This means that in order to use these macros, the callers must have prototypes > for the corresponding functions. On 85xx, only speed.c uses these macros, so > let's define the prototypes there. This eliminates the need to define the > prototypes in the board config files. It also eliminates the utility of the prototype in making sure usage matches the definition, and requires that the user of the macros provide implementation prerequisites. -Scott