aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-hid-sensor-time.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-hid-sensor-time.c')
-rw-r--r--drivers/rtc/rtc-hid-sensor-time.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-hid-sensor-time.c b/drivers/rtc/rtc-hid-sensor-time.c
index 3e1abb455472..f27c40e8331f 100644
--- a/drivers/rtc/rtc-hid-sensor-time.c
+++ b/drivers/rtc/rtc-hid-sensor-time.c
@@ -205,8 +205,7 @@ static int hid_time_parse_report(struct platform_device *pdev,
205static int hid_rtc_read_time(struct device *dev, struct rtc_time *tm) 205static int hid_rtc_read_time(struct device *dev, struct rtc_time *tm)
206{ 206{
207 unsigned long flags; 207 unsigned long flags;
208 struct hid_time_state *time_state = 208 struct hid_time_state *time_state = dev_get_drvdata(dev);
209 platform_get_drvdata(to_platform_device(dev));
210 int ret; 209 int ret;
211 210
212 reinit_completion(&time_state->comp_last_time); 211 reinit_completion(&time_state->comp_last_time);