public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP: Fix warnings in devices.c for 2430sdp config
@ 2007-03-19 17:35 Dirk Behme
  2007-03-20 16:05 ` tony
  0 siblings, 1 reply; 5+ messages in thread
From: Dirk Behme @ 2007-03-19 17:35 UTC (permalink / raw)
  To: linux-omap-open-source

[-- Attachment #1: Type: text/plain, Size: 423 bytes --]


Fix warnings

arch/arm/plat-omap/devices.c:159: warning: 'omap_init_kp' 
defined but not used
arch/arm/plat-omap/devices.c:282: warning: 'omap_init_mmc' 
defined but not used
arch/arm/plat-omap/devices.c:436: warning: 'omap_init_wdt' 
defined but not used
arch/arm/plat-omap/devices.c:469: warning: 'omap_init_rng' 
defined but not used

if using omap_2430sdp_defconfig.

Signed-off-by: Dirk Behme <dirk.behme@gmail.com>


[-- Attachment #2: devices_warnings_fix.txt --]
[-- Type: text/plain, Size: 1816 bytes --]

Index: linux-osk/arch/arm/plat-omap/devices.c
===================================================================
--- linux-osk.orig/arch/arm/plat-omap/devices.c
+++ linux-osk/arch/arm/plat-omap/devices.c
@@ -153,7 +153,8 @@ static inline void omap_init_i2c(void) {
 #endif
 
 /*-------------------------------------------------------------------------*/
-#if	defined(CONFIG_KEYBOARD_OMAP) || defined(CONFIG_KEYBOARD_OMAP_MODULE)
+#if	(defined(CONFIG_KEYBOARD_OMAP) || defined(CONFIG_KEYBOARD_OMAP_MODULE)) && \
+        !defined(CONFIG_MACH_OMAP_2430SDP)
 
 static void omap_init_kp(void)
 {
@@ -210,7 +211,8 @@ static inline void omap_init_kp(void) {}
 
 /*-------------------------------------------------------------------------*/
 
-#if	defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE)
+#if	(defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE)) && \
+        !defined(CONFIG_MACH_OMAP_2430SDP)
 
 #ifdef CONFIG_ARCH_OMAP24XX
 #define	OMAP_MMC1_BASE		0x4809c000
@@ -409,7 +411,8 @@ static inline void omap_init_uwire(void)
 
 /*-------------------------------------------------------------------------*/
 
-#if	defined(CONFIG_OMAP_WATCHDOG) || defined(CONFIG_OMAP_WATCHDOG_MODULE)
+#if	(defined(CONFIG_OMAP_WATCHDOG) || defined(CONFIG_OMAP_WATCHDOG_MODULE)) && \
+        !defined(CONFIG_MACH_OMAP_2430SDP)
 
 #ifdef CONFIG_ARCH_OMAP24XX
 #define	OMAP_WDT_BASE		0x48022000
@@ -442,7 +445,8 @@ static inline void omap_init_wdt(void) {
 
 /*-------------------------------------------------------------------------*/
 
-#if defined(CONFIG_HW_RANDOM_OMAP) || defined(CONFIG_HW_RANDOM_OMAP_MODULE)
+#if     (defined(CONFIG_HW_RANDOM_OMAP) || defined(CONFIG_HW_RANDOM_OMAP_MODULE)) && \
+        !defined(CONFIG_MACH_OMAP_2430SDP)
 
 #ifdef CONFIG_ARCH_OMAP24XX
 #define	OMAP_RNG_BASE		0x480A0000


[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-04-03 19:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-19 17:35 [PATCH] ARM: OMAP: Fix warnings in devices.c for 2430sdp config Dirk Behme
2007-03-20 16:05 ` tony
2007-03-20 16:41   ` Syed Mohammed, Khasim
2007-03-20 18:04     ` Tony Lindgren
2007-04-03 19:53       ` tony

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox