]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drivers/rtc/rtc-puv3.c: remove "&dev->" for typo issue MIME-Version: 1.0
authorChen Gang <gang.chen.5i5j@gmail.com>
Sat, 3 May 2014 05:09:02 +0000 (13:09 +0800)
committerGuan Xuetao <gxt@mprc.pku.edu.cn>
Fri, 20 Jun 2014 00:22:39 +0000 (08:22 +0800)
It is only a typo issue, the related commit:

  "ca66ed4 drivers/rtc/rtc-puv3.c: use dev_dbg() instead of pr_debug()"

The related error (for unicore32 with allmodconfig):

    CC [M]  drivers/rtc/rtc-puv3.o
  drivers/rtc/rtc-puv3.c: In function 'puv3_rtc_setalarm':
  drivers/rtc/rtc-puv3.c:143: error: 'struct device' has no member named 'dev'

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Acked-by: Xuetao Guan <gxt@mprc.pku.edu.cn>
Signed-off-by: Xuetao Guan <gxt@mprc.pku.edu.cn>
drivers/rtc/rtc-puv3.c

index c56310e970e509871f082a247fd108bb396f57bc..1cff2a21db67faade5ce87632b1c3afabf02245c 100644 (file)
@@ -140,7 +140,7 @@ static int puv3_rtc_setalarm(struct device *dev, struct rtc_wkalrm *alrm)
        rtc_tm_to_time(tm, &rtcalarm_count);
        writel(rtcalarm_count, RTC_RTAR);
 
-       puv3_rtc_setaie(&dev->dev, alrm->enabled);
+       puv3_rtc_setaie(dev, alrm->enabled);
 
        if (alrm->enabled)
                enable_irq_wake(puv3_rtc_alarmno);