omit pcf8563_rtc_ioctl() if CONFIG_RTC_INTF_DEV=n
Cc: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
return pcf8523_start_rtc(client);
}
+#ifdef CONFIG_RTC_INTF_DEV
static int pcf8523_rtc_ioctl(struct device *dev, unsigned int cmd,
unsigned long arg)
{
return -ENOIOCTLCMD;
}
}
+#else
+#define pcf8523_rtc_ioctl NULL
+#endif
static const struct rtc_class_ops pcf8523_rtc_ops = {
.read_time = pcf8523_rtc_read_time,