Commit cc61686001b1368724d1c38805c27e5021cd85ed

Authored by Randy Dunlap
Committed by Linus Torvalds
1 parent beaa4867ee

rtc twl4030: rename ioctl function when RTC_INTF_DEV=n

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@oracle.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Samuel Ortiz <sameo@openedhand.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/rtc/rtc-twl4030.c
... ... @@ -337,7 +337,7 @@
337 337 }
338 338  
339 339 #else
340   -#define omap_rtc_ioctl NULL
  340 +#define twl4030_rtc_ioctl NULL
341 341 #endif
342 342  
343 343 static irqreturn_t twl4030_rtc_interrupt(int irq, void *rtc)