mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 14:19:16 +00:00
rtc: pcf2127: remove unnecessary #ifdef
There is not point in setting .ioctl to NULL when CONFIG_RTC_INTF_DEV is not defined because it would not be called anyway. Link: https://lore.kernel.org/r/20200505201310.255145-3-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
b139bb5c26
commit
664eaf033f
1 changed files with 0 additions and 4 deletions
|
@ -184,7 +184,6 @@ static int pcf2127_rtc_set_time(struct device *dev, struct rtc_time *tm)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_RTC_INTF_DEV
|
||||
static int pcf2127_rtc_ioctl(struct device *dev,
|
||||
unsigned int cmd, unsigned long arg)
|
||||
{
|
||||
|
@ -205,9 +204,6 @@ static int pcf2127_rtc_ioctl(struct device *dev,
|
|||
return -ENOIOCTLCMD;
|
||||
}
|
||||
}
|
||||
#else
|
||||
#define pcf2127_rtc_ioctl NULL
|
||||
#endif
|
||||
|
||||
static const struct rtc_class_ops pcf2127_rtc_ops = {
|
||||
.ioctl = pcf2127_rtc_ioctl,
|
||||
|
|
Loading…
Reference in a new issue