mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-04 10:30:50 +09:00
omap3: Include array definition only when it is used
The array of strings corresponding to cpu revision is used only when CONFIG_DISPLAY_CPUINFO is selected - in the function print_cpuinfo(). Enclose definition of this array in #ifdef...#endif for the same. Signed-off-by: Sanjeev Premi <premi@ti.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
This commit is contained in:
parent
d50a8f45c9
commit
80bb756dbe
@ -33,6 +33,8 @@
|
|||||||
|
|
||||||
extern omap3_sysinfo sysinfo;
|
extern omap3_sysinfo sysinfo;
|
||||||
static struct ctrl *ctrl_base = (struct ctrl *)OMAP34XX_CTRL_BASE;
|
static struct ctrl *ctrl_base = (struct ctrl *)OMAP34XX_CTRL_BASE;
|
||||||
|
|
||||||
|
#ifdef CONFIG_DISPLAY_CPUINFO
|
||||||
static char *rev_s[CPU_3XX_MAX_REV] = {
|
static char *rev_s[CPU_3XX_MAX_REV] = {
|
||||||
"1.0",
|
"1.0",
|
||||||
"2.0",
|
"2.0",
|
||||||
@ -42,6 +44,7 @@ static char *rev_s[CPU_3XX_MAX_REV] = {
|
|||||||
"UNKNOWN",
|
"UNKNOWN",
|
||||||
"UNKNOWN",
|
"UNKNOWN",
|
||||||
"3.1.2"};
|
"3.1.2"};
|
||||||
|
#endif /* CONFIG_DISPLAY_CPUINFO */
|
||||||
|
|
||||||
/*****************************************************************
|
/*****************************************************************
|
||||||
* dieid_num_r(void) - read and set die ID
|
* dieid_num_r(void) - read and set die ID
|
||||||
|
Loading…
Reference in New Issue
Block a user