From 3da4d34b7b39be877757e3cf78c60afc0d80b6fd Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 20 Feb 2013 13:15:41 +1100 Subject: [PATCH] rtc-pcf8523-add-low-battery-voltage-support-fix omit pcf8563_rtc_ioctl() if CONFIG_RTC_INTF_DEV=n Cc: Jesper Nilsson Cc: Thierry Reding Signed-off-by: Andrew Morton --- drivers/rtc/rtc-pcf8523.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/rtc/rtc-pcf8523.c b/drivers/rtc/rtc-pcf8523.c index 0696ab2b7c57..889e3160e701 100644 --- a/drivers/rtc/rtc-pcf8523.c +++ b/drivers/rtc/rtc-pcf8523.c @@ -251,6 +251,7 @@ static int pcf8523_rtc_set_time(struct device *dev, struct rtc_time *tm) return pcf8523_start_rtc(client); } +#ifdef CONFIG_RTC_INTF_DEV static int pcf8523_rtc_ioctl(struct device *dev, unsigned int cmd, unsigned long arg) { @@ -275,6 +276,9 @@ static int pcf8523_rtc_ioctl(struct device *dev, unsigned int cmd, return -ENOIOCTLCMD; } } +#else +#define pcf8523_rtc_ioctl NULL +#endif static const struct rtc_class_ops pcf8523_rtc_ops = { .read_time = pcf8523_rtc_read_time, -- 2.39.5