omap_type is always known and nobody else is using this kernel.
The goal is to allow the compiler to remove some code in idle path.
}
EXPORT_SYMBOL(omap_rev);
}
EXPORT_SYMBOL(omap_rev);
int omap_type(void)
{
u32 val = 0;
int omap_type(void)
{
u32 val = 0;
#define OMAP2_DEVICE_TYPE_GP 3
#define OMAP2_DEVICE_TYPE_BAD 4
#define OMAP2_DEVICE_TYPE_GP 3
#define OMAP2_DEVICE_TYPE_BAD 4
+#ifdef CONFIG_MACH_OMAP3_PANDORA
+#define omap_type() OMAP2_DEVICE_TYPE_GP
+#else
+int __pure omap_type(void);
+#endif
* CPU revision (See _REV_ defined in cpu.h) [15:08]
* CPU class bits (15xx, 16xx, 24xx, 34xx...) [07:00]
*/
* CPU revision (See _REV_ defined in cpu.h) [15:08]
* CPU class bits (15xx, 16xx, 24xx, 34xx...) [07:00]
*/
-unsigned int omap_rev(void);
+unsigned int __pure omap_rev(void);
/*
* Get the CPU revision for OMAP devices
/*
* Get the CPU revision for OMAP devices