]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc: Implement get_brgfreq() and get_baudrate() stubs
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Fri, 5 Dec 2008 20:10:26 +0000 (23:10 +0300)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 30 Dec 2008 17:13:40 +0000 (11:13 -0600)
This is needed to not bother with ugly #ifdefs in the drivers.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/fsl_soc.h

index 60f7f227327ce04dbb0fc81c82e424bfbfcdb2a8..9c744e4285a023c21fe7d7e12876e4443fc43a51 100644 (file)
@@ -5,8 +5,13 @@
 #include <asm/mmu.h>
 
 extern phys_addr_t get_immrbase(void);
+#if defined(CONFIG_CPM2) || defined(CONFIG_QUICC_ENGINE) || defined(CONFIG_8xx)
 extern u32 get_brgfreq(void);
 extern u32 get_baudrate(void);
+#else
+static inline u32 get_brgfreq(void) { return -1; }
+static inline u32 get_baudrate(void) { return -1; }
+#endif
 extern u32 fsl_get_sys_freq(void);
 
 struct spi_board_info;