Patchwork [2/2] drivers/rtc/rtc-puv3.c: remove "&dev->" for typo issue MIME-Version: 1.0

login
register
mail settings
Submitter Chen Gang
Date May 3, 2014, 5:09 a.m.
Message ID <536479EE.4090500@gmail.com>
Download mbox | patch
Permalink /patch/345295/
State New
Headers show

Comments

Chen Gang - May 3, 2014, 5:09 a.m.
It is only a typo issue, the related commit:

  "1fbc4c4 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>
---
 drivers/rtc/rtc-puv3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Guan Xueao - May 12, 2014, 7:56 a.m.
Acked-by: Xuetao Guan <gxt@mprc.pku.edu.cn>

----- Chen Gang <gang.chen.5i5j@gmail.com> 写道:
> It is only a typo issue, the related commit:
> 
>   "1fbc4c4 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>
> ---
>  drivers/rtc/rtc-puv3.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/rtc/rtc-puv3.c b/drivers/rtc/rtc-puv3.c
> index c56310e..1cff2a2 100644
> --- a/drivers/rtc/rtc-puv3.c
> +++ b/drivers/rtc/rtc-puv3.c
> @@ -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);
> -- 
> 1.9.2.459.g68773ac

Patch

diff --git a/drivers/rtc/rtc-puv3.c b/drivers/rtc/rtc-puv3.c
index c56310e..1cff2a2 100644
--- a/drivers/rtc/rtc-puv3.c
+++ b/drivers/rtc/rtc-puv3.c
@@ -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);