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

From: Randy Dunlap
Date: Wed Dec 03 2008 - 20:31:19 EST

From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

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 <randy.dunlap@xxxxxxxxxx>
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

-#define omap_rtc_ioctl NULL
+#define twl4030_rtc_ioctl NULL

static irqreturn_t twl4030_rtc_interrupt(int irq, void *rtc)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/