Subject: [PATCH -next] rtc twl4030: rename ioctl function when RTC_INTF_DEV=n

From: Randy Dunlap <[email-masked]>
Date: Wed, 03 Dec 2008 17:30:59 -0800

From: Randy Dunlap <[email-masked]>

Fix build error when RTC_INTF_DEV=n:

drivers/rtc/rtc-twl4030.c:402: error: 'twl4030_rtc_ioctl' undeclared here (not in a function)
make[3]: *** [drivers/rtc/rtc-twl4030.o] Error 1

Signed-off-by: Randy Dunlap <[email-masked]>
---
 drivers/rtc/rtc-twl4030.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20081203.orig/drivers/rtc/rtc-twl4030.c
+++ linux-next-20081203/drivers/rtc/rtc-twl4030.c
@@ -337,7 +337,7 @@ static int twl4030_rtc_ioctl(struct devi
 }
 
 #else
-#define	omap_rtc_ioctl	NULL
+#define	twl4030_rtc_ioctl	NULL
 #endif
 
 static irqreturn_t twl4030_rtc_interrupt(int irq, void *rtc)