diff options
Diffstat (limited to 'drivers/rtc/rtc-test.c')
-rw-r--r-- | drivers/rtc/rtc-test.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-test.c b/drivers/rtc/rtc-test.c index 3a2da4c892d6..390f928fd6fc 100644 --- a/drivers/rtc/rtc-test.c +++ b/drivers/rtc/rtc-test.c | |||
@@ -84,8 +84,7 @@ static ssize_t test_irq_store(struct device *dev, | |||
84 | const char *buf, size_t count) | 84 | const char *buf, size_t count) |
85 | { | 85 | { |
86 | int retval; | 86 | int retval; |
87 | struct platform_device *plat_dev = to_platform_device(dev); | 87 | struct rtc_device *rtc = dev_get_drvdata(dev); |
88 | struct rtc_device *rtc = platform_get_drvdata(plat_dev); | ||
89 | 88 | ||
90 | retval = count; | 89 | retval = count; |
91 | if (strncmp(buf, "tick", 4) == 0 && rtc->pie_enabled) | 90 | if (strncmp(buf, "tick", 4) == 0 && rtc->pie_enabled) |