@@ -293,10 +293,6 @@ static void __init omap4_check_revision(void)
pr_err("Unknown OMAP4 CPU id\n");
}
-#define OMAP3_SHOW_FEATURE(feat) \
- if (omap3_has_ ##feat()) \
- printk(#feat" ");
-
static void __init omap3_cpuinfo(void)
{
u8 rev = GET_OMAP_REVISION();
@@ -358,12 +354,12 @@ static void __init omap3_cpuinfo(void)
/* Print verbose information */
pr_info("%s ES%s (", cpu_name, cpu_rev);
- OMAP3_SHOW_FEATURE(l2cache);
- OMAP3_SHOW_FEATURE(iva);
- OMAP3_SHOW_FEATURE(sgx);
- OMAP3_SHOW_FEATURE(neon);
- OMAP3_SHOW_FEATURE(isp);
- OMAP3_SHOW_FEATURE(192mhz_clk);
+ OMAP_SHOW_FEATURE(3, l2cache);
+ OMAP_SHOW_FEATURE(3, iva);
+ OMAP_SHOW_FEATURE(3, sgx);
+ OMAP_SHOW_FEATURE(3, neon);
+ OMAP_SHOW_FEATURE(3, isp);
+ OMAP_SHOW_FEATURE(3, 192mhz_clk);
printk(")\n");
}
@@ -450,6 +450,12 @@ static inline unsigned int omap##rev##_has_ ##feat(void) \
return omap##rev##_features & OMAP##rev##_HAS_ ##flag; \
} \
+#define OMAP_SHOW_FEATURE(rev, feat) \
+{ \
+ if (omap##rev##_has_ ##feat()) \
+ printk(#feat" "); \
+} \
+
/*
* Runtime detection of OMAP3 features
*/