Skip to content

Commit

Permalink
rtc twl4030: rename ioctl function when RTC_INTF_DEV=n
Browse files Browse the repository at this point in the history
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 protected]>
Cc: David Brownell <[email protected]>
Cc: Tony Lindgren <[email protected]>
Cc: Samuel Ortiz <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
rddunlap authored and torvalds committed Dec 10, 2008
1 parent beaa486 commit cc61686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-twl4030.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ static int twl4030_rtc_ioctl(struct device *dev, unsigned int cmd,
}

#else
#define omap_rtc_ioctl NULL
#define twl4030_rtc_ioctl NULL
#endif

static irqreturn_t twl4030_rtc_interrupt(int irq, void *rtc)
Expand Down

0 comments on commit cc61686

Please sign in to comment.