summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-05-31 23:09:55 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-05-31 23:13:25 +0200
commit9394270ef9ce455b84f896a0060423019834a0e3 (patch)
tree5113af8b07269dfdd58a1df114115b44d76ff1c6 /drivers/rtc
parentc36b52ed18c2b3d84b26cf8bedca0f6649aeb2b8 (diff)
rtc: test: remove useless proc info
The rtc proc callback is useless for two reasosn: - the test RTC is often not the first RTC so it will never be used - all the info is available in the name file of the RTC sys folder Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-test.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/rtc/rtc-test.c b/drivers/rtc/rtc-test.c
index a0d1571c4af6..f0eb8e0c5055 100644
--- a/drivers/rtc/rtc-test.c
+++ b/drivers/rtc/rtc-test.c
@@ -40,23 +40,12 @@ static int test_rtc_set_mmss64(struct device *dev, time64_t secs)
return 0;
}
-static int test_rtc_proc(struct device *dev, struct seq_file *seq)
-{
- struct platform_device *plat_dev = to_platform_device(dev);
-
- seq_printf(seq, "test\t\t: yes\n");
- seq_printf(seq, "id\t\t: %d\n", plat_dev->id);
-
- return 0;
-}
-
static int test_rtc_alarm_irq_enable(struct device *dev, unsigned int enable)
{
return 0;
}
static const struct rtc_class_ops test_rtc_ops = {
- .proc = test_rtc_proc,
.read_time = test_rtc_read_time,
.read_alarm = test_rtc_read_alarm,
.set_alarm = test_rtc_set_alarm,