rtc: use dev_warn()/dev_dbg()/pr_err() instead of printk()
Subsystems (3)
PATCH v2 1/11 rtc: use dev_warn()/dev_dbg()/pr_err() instead of printk()
Fixed the checkpatch warning as below:
WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ...
---
Changes since v1:
- Repalce pr_warn(), pr_debug() with dev_warn(), dev_dbg()
drivers/rtc/class.c | 4 +++- drivers/rtc/rtc-dev.c | 11 ++++++----- 2 files changed, 9 insertions(+), 6 deletions(-)
drivers/rtc/class.c +3 -1
@@ -11,6 +11,8 @@* published by the Free Software Foundation. */ +#define pr_fmt (fmt) KBUILD_MODNAME ": " fmt +#include <linux/module.h> #include <linux/rtc.h> #include <linux/kdev_t.h>
@@ -261,7 +263,7 @@ static int __init rtc_init(void) { rtc_class =class_create (THIS_MODULE ,"rtc" );if (IS_ERR (rtc_class)) { -printk (KERN_ERR "%s: couldn't create class\n" , __FILE__); +pr_err ("couldn't create class\n" );return PTR_ERR (rtc_class); } rtc_class->suspend = rtc_suspend;
drivers/rtc/rtc-dev.c +6 -5
@@ -11,6 +11,8 @@* published by the Free Software Foundation. */ +#define pr_fmt (fmt) KBUILD_MODNAME ": " fmt +#include <linux/module.h> #include <linux/rtc.h> #include <linux/sched.h>
@@ -462,7 +464,7 @@ void rtc_dev_prepare(struct rtc_device *rtc)return ;if (rtc->id >=RTC_DEV_MAX ) { -pr_debug ("%s: too many RTC devices\n" , rtc->name); +dev_dbg (&rtc->dev,"%s: too many RTC devices\n" , rtc->name);return ; }
@@ -480,10 +482,10 @@ void rtc_dev_prepare(struct rtc_device *rtc)void rtc_dev_add_device (struct rtc_device *rtc) {if (cdev_add (&rtc->char_dev, rtc->dev.devt,1 )) -printk (KERN_WARNING "%s: failed to add char device %d:%d\n" , +dev_warn (&rtc->dev,"%s: failed to add char device %d:%d\n" , rtc->name,MAJOR (rtc_devt), rtc->id);else -pr_debug ("%s: dev (%d:%d)\n" , rtc->name, +dev_dbg (&rtc->dev,"%s: dev (%d:%d)\n" , rtc->name,MAJOR (rtc_devt), rtc->id); }
@@ -499,8 +501,7 @@ void __init rtc_dev_init(void) err =alloc_chrdev_region (&rtc_devt,0 ,RTC_DEV_MAX ,"rtc" );if (err <0 ) -printk (KERN_ERR "%s: failed to allocate char dev region\n" , - __FILE__); +pr_err ("failed to allocate char dev region\n" ); } void __exit rtc_dev_exit(void)
Signature · 1 line
1.7.2.5
PATCH v2 2/11 rtc: max77686: use dev_info() instead of printk()
Fixed the checkpatch warning as below:
WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ...
---
No changes since v1:
drivers/rtc/rtc-max77686.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/rtc/rtc-max77686.c +2 -2
@@ -507,7 +507,7 @@ static int max77686_rtc_probe(struct platform_device *pdev)struct max77686_rtc_info *info;int ret, virq; -printk (KERN_INFO "%s\n" , __func__); +dev_info (&pdev->dev,"%s\n" , __func__); info =kzalloc (sizeof (struct max77686_rtc_info ),GFP_KERNEL );if (!info)
@@ -546,7 +546,7 @@ static int max77686_rtc_probe(struct platform_device *pdev) &max77686_rtc_ops, THIS_MODULE);if (IS_ERR (info->rtc_dev)) { -printk (KERN_INFO "%s: fail\n" , __func__); +dev_info (&pdev->dev,"%s: fail\n" , __func__); ret =PTR_ERR (info->rtc_dev);dev_err (&pdev->dev,"Failed to register RTC device: %d\n" , ret);
Signature · 1 line
1.7.2.5
PATCH v2 3/11 rtc: rtc-efi: use dev_err()/dev_warn()/pr_err() instead of printk()
In reply to Jingoo HanFixed the checkpatch warnings as below:
WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ...
WARNING: please, no space before tabs
---
Changes since v1:
- Repalce pr_warn(), pr_err() with dev_warn(), dev_err()
drivers/rtc/rtc-efi.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-)
drivers/rtc/rtc-efi.c +6 -4
@@ -13,6 +13,8 @@* */ +#define pr_fmt (fmt) KBUILD_MODNAME ": " fmt +#include <linux/kernel.h> #include <linux/module.h> #include <linux/time.h>
@@ -47,7 +49,7 @@ compute_wday(efi_time_t *eft)int ndays =0 ;if (eft->year <1998 ) { -printk (KERN_ERR "efirtc: EFI year < 1998, invalid date\n" ); +pr_err ("EFI year < 1998, invalid date\n" );return -1 ; }
@@ -70,7 +72,7 @@ convert_to_efi_time(struct rtc_time *wtime, efi_time_t *eft) eft->day = wtime->tm_mday; eft->hour = wtime->tm_hour; eft->minute = wtime->tm_min; - eft->second = wtime->tm_sec; + eft->second = wtime->tm_sec; eft->nanosecond =0 ; eft->daylight = wtime->tm_isdst ?EFI_ISDST :0 ; eft->timezone =EFI_UNSPECIFIED_TIMEZONE ;
@@ -142,7 +144,7 @@ static int efi_set_alarm(struct device *dev, struct rtc_wkalrm *wkalrm)*/ status = efi.set_wakeup_time ((efi_bool_t )wkalrm->enabled, &eft); -printk (KERN_WARNING "write status is %d\n" , (int )status); +dev_warn (dev,"write status is %d\n" , (int )status);return status ==EFI_SUCCESS ?0 : -EINVAL ; }
@@ -157,7 +159,7 @@ static int efi_read_time(struct device *dev, struct rtc_time *tm)if (status !=EFI_SUCCESS ) {/* should never happen */ -printk (KERN_ERR "efitime: can't read time\n" ); +dev_err (dev,"can't read time\n" );return -EINVAL ; }
Signature · 1 line
1.7.2.5
PATCH v2 4/11 rtc: rtc-ds2404: use dev_err() instead of printk()
In reply to Jingoo HanFixed the checkpatch warning as below:
WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ...
---
No changes since v1:
drivers/rtc/rtc-ds2404.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/rtc/rtc-ds2404.c +2 -2
@@ -70,7 +70,7 @@ static int ds2404_gpio_map(struct ds2404 *chip, struct platform_device *pdev,for (i =0 ; i <ARRAY_SIZE (ds2404_gpio); i++) { err =gpio_request (ds2404_gpio[i].gpio, ds2404_gpio[i].name);if (err) { -printk (KERN_ERR "error mapping gpio %s: %d\n" , +dev_err (&pdev->dev,"error mapping gpio %s: %d\n" , ds2404_gpio[i].name, err); goto err_request; }
@@ -177,7 +177,7 @@ static void ds2404_write_memory(struct device *dev, u16 offset,for (i =0 ; i < length; i++) {if (out[i] !=ds2404_read_byte (dev)) { -printk (KERN_ERR "read invalid data\n" ); +dev_err (dev,"read invalid data\n" );return ; } }
Signature · 1 line
1.7.2.5
PATCH v2 5/11 rtc: rtc-rs5c372: use dev_dbg()/dev_warn() instead of printk()/pr_debug()
In reply to Jingoo HanFixed the checkpatch warning as below:
WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ...
---
No changes since v1:
drivers/rtc/rtc-rs5c372.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-)
drivers/rtc/rtc-rs5c372.c +4 -6
@@ -311,8 +311,7 @@ static int rs5c_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) buf &= ~RS5C_CTRL1_AALE ;if (i2c_smbus_write_byte_data (client, addr, buf) <0 ) { -printk (KERN_WARNING "%s: can't update alarm\n" , - rs5c->rtc->name); +dev_warn (dev,"can't update alarm\n" ); status = -EIO ; }else rs5c->regs[RS5C_REG_CTRL1 ] = buf;
@@ -381,7 +380,7 @@ static int rs5c_set_alarm(struct device *dev, struct rtc_wkalrm *t) addr =RS5C_ADDR (RS5C_REG_CTRL1 ); buf[0 ] = rs5c->regs[RS5C_REG_CTRL1 ] & ~RS5C_CTRL1_AALE ;if (i2c_smbus_write_byte_data (client, addr, buf[0 ]) <0 ) { -pr_debug ("%s: can't disable alarm\n" , rs5c->rtc->name); +dev_dbg (dev,"can't disable alarm\n" );return -EIO ; } rs5c->regs[RS5C_REG_CTRL1 ] = buf[0 ];
@@ -395,7 +394,7 @@ static int rs5c_set_alarm(struct device *dev, struct rtc_wkalrm *t)for (i =0 ; i <sizeof (buf); i++) { addr =RS5C_ADDR (RS5C_REG_ALARM_A_MIN + i);if (i2c_smbus_write_byte_data (client, addr, buf[i]) <0 ) { -pr_debug ("%s: can't set alarm time\n" , rs5c->rtc->name); +dev_dbg (dev,"can't set alarm time\n" );return -EIO ; } }
@@ -405,8 +404,7 @@ static int rs5c_set_alarm(struct device *dev, struct rtc_wkalrm *t) addr =RS5C_ADDR (RS5C_REG_CTRL1 ); buf[0 ] = rs5c->regs[RS5C_REG_CTRL1 ] |RS5C_CTRL1_AALE ;if (i2c_smbus_write_byte_data (client, addr, buf[0 ]) <0 ) -printk (KERN_WARNING "%s: can't enable alarm\n" , - rs5c->rtc->name); +dev_warn (dev,"can't enable alarm\n" ); rs5c->regs[RS5C_REG_CTRL1 ] = buf[0 ]; }
Signature · 1 line
1.7.2.5
PATCH v2 6/11 rtc: rtc-at91rm9200: use dev_dbg()/dev_err() instead of printk()/pr_debug()
In reply to Jingoo HanFixed the checkpatch warning as below:
WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ...
---
No changes since v1:
drivers/rtc/rtc-at91rm9200.c | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-)
drivers/rtc/rtc-at91rm9200.c +8 -9
@@ -86,7 +86,7 @@ static int at91_rtc_readtime(struct device *dev, struct rtc_time *tm) tm->tm_yday =rtc_year_days (tm->tm_mday, tm->tm_mon, tm->tm_year); tm->tm_year = tm->tm_year -1900 ; -pr_debug ("%s(): %4d-%02d-%02d %02d:%02d:%02d\n" , __func__, +dev_dbg (dev,"%s(): %4d-%02d-%02d %02d:%02d:%02d\n" , __func__,1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
@@ -100,7 +100,7 @@ static int at91_rtc_settime(struct device *dev, struct rtc_time *tm) {unsigned long cr; -pr_debug ("%s(): %4d-%02d-%02d %02d:%02d:%02d\n" , __func__, +dev_dbg (dev,"%s(): %4d-%02d-%02d %02d:%02d:%02d\n" , __func__,1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
@@ -145,7 +145,7 @@ static int at91_rtc_readalarm(struct device *dev, struct rtc_wkalrm *alrm) alrm->enabled = (at91_rtc_read (AT91_RTC_IMR ) &AT91_RTC_ALARM ) ?1 :0 ; -pr_debug ("%s(): %4d-%02d-%02d %02d:%02d:%02d\n" , __func__, +dev_dbg (dev,"%s(): %4d-%02d-%02d %02d:%02d:%02d\n" , __func__,1900 + tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
@@ -183,7 +183,7 @@ static int at91_rtc_setalarm(struct device *dev, struct rtc_wkalrm *alrm)at91_rtc_write (AT91_RTC_IER ,AT91_RTC_ALARM ); } -pr_debug ("%s(): %4d-%02d-%02d %02d:%02d:%02d\n" , __func__, +dev_dbg (dev,"%s(): %4d-%02d-%02d %02d:%02d:%02d\n" , __func__, at91_alarm_year, tm.tm_mon, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec);
@@ -192,7 +192,7 @@ static int at91_rtc_setalarm(struct device *dev, struct rtc_wkalrm *alrm)static int at91_rtc_alarm_irq_enable (struct device *dev,unsigned int enabled) { -pr_debug ("%s(): cmd=%08x\n" , __func__, enabled); +dev_dbg (dev,"%s(): cmd=%08x\n" , __func__, enabled);if (enabled) {at91_rtc_write (AT91_RTC_SCCR ,AT91_RTC_ALARM );
@@ -240,7 +240,7 @@ static irqreturn_t at91_rtc_interrupt(int irq, void *dev_id)rtc_update_irq (rtc,1 , events); -pr_debug ("%s(): num=%ld, events=0x%02lx\n" , __func__, +dev_dbg (&pdev->dev,"%s(): num=%ld, events=0x%02lx\n" , __func__, events >>8 , events &0x000000FF );return IRQ_HANDLED ;
@@ -296,8 +296,7 @@ static int __init at91_rtc_probe(struct platform_device *pdev)IRQF_SHARED , "at91_rtc", pdev);if (ret) { -printk (KERN_ERR "at91_rtc: IRQ %d already in use.\n" , - irq); +dev_err (&pdev->dev,"at91_rtc: IRQ %d already in use.\n" , irq);return ret; }
@@ -315,7 +314,7 @@ static int __init at91_rtc_probe(struct platform_device *pdev) }platform_set_drvdata (pdev, rtc); -printk (KERN_INFO "AT91 Real Time Clock driver.\n" ); +dev_info (&pdev->dev,"AT91 Real Time Clock driver.\n" );return 0 ; }
Signature · 1 line
1.7.2.5
PATCH v2 7/11 rtc: rtc-rs5c313: use pr_err() instead of printk()
In reply to Jingoo HanFixed the checkpatch warning as below:
WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ...
---
No changes since v1:
drivers/rtc/rtc-rs5c313.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/rtc/rtc-rs5c313.c +3 -2
@@ -39,6 +39,8 @@* 1.13 Nobuhiro Iwamatsu: Updata driver. */ +#define pr_fmt (fmt) KBUILD_MODNAME ": " fmt +#include <linux/module.h> #include <linux/err.h> #include <linux/rtc.h>
@@ -352,8 +354,7 @@ static void rs5c313_check_xstp_bit(void) tm.tm_year =2000 -1900 ;rs5c313_rtc_set_time (NULL , &tm); -printk (KERN_ERR "RICHO RS5C313: invalid value, resetting to " -"1 Jan 2000\n" ); +pr_err ("RICHO RS5C313: invalid value, resetting to 1 Jan 2000\n" ); }RS5C313_CEDISABLE ;ndelay (700 );/* CE:L */
Signature · 1 line
1.7.2.5
Re: [PATCH V2 07/11] rtc: rtc-rs5c313: use pr_err() instead of printk()
Quoted 1 line · Jingoo Han
Fixed the checkpatch warning as below:
[]
drivers/rtc/rtc-rs5c313.c
Quoted 1 line
drivers/rtc/rtc-rs5c313.c +0
-0
[]
Quoted 10 lines
drivers/rtc/rtc-rs5c313.c +2
-0@@ -39,6 +39,8 @@* 1.13 Nobuhiro Iwamatsu: Updata driver. */ +#define pr_fmt (fmt) KBUILD_MODNAME ": " fmt +#include <linux/module.h> #include <linux/err.h> #include <linux/rtc.h>
drivers/rtc/rtc-rs5c313.c static void rs5c313_check_xstp_bit(void) · line 357
Quoted 6 lines
drivers/rtc/rtc-rs5c313.c +1
-2@@ -352,8 +354,7 @@ static void rs5c313_check_xstp_bit(void) tm.tm_year =2000 -1900 ;rs5c313_rtc_set_time (NULL , &tm); -printk (KERN_ERR "RICHO RS5C313: invalid value, resetting to " -"1 Jan 2000\n" ); +pr_err ("RICHO RS5C313: invalid value, resetting to 1 Jan 2000\n" );
You could remove the "RICH0 RS5C313: "prefix,pr_fmt adds it (more or less).
Re: [PATCH V2 07/11] rtc: rtc-rs5c313: use pr_err() instead of printk()
Quoted 17 lines · Joe Perches
Quoted 1 line · Jingoo Han
Fixed the checkpatch warning as below:
[]
drivers/rtc/rtc-rs5c313.c
Quoted 1 line
drivers/rtc/rtc-rs5c313.c +0
-0[]
Quoted 12 lines
drivers/rtc/rtc-rs5c313.c +2
-0@@ -39,6 +39,8 @@* 1.13 Nobuhiro Iwamatsu: Updata driver. */ +#define pr_fmt (fmt) KBUILD_MODNAME ": " fmt +#include <linux/module.h> #include <linux/err.h> #include <linux/rtc.h> @@ -352,8 +354,7 @@ static void rs5c313_check_xstp_bit(void) tm.tm_year =2000 -1900 ;
Quoted 7 lines
drivers/rtc/rtc-rs5c313.c static void rs5c313_check_xstp_bit(void) · line 357
Quoted 4 lines
drivers/rtc/rtc-rs5c313.c +1
-2rs5c313_rtc_set_time (NULL , &tm); -printk (KERN_ERR "RICHO RS5C313: invalid value, resetting to " -"1 Jan 2000\n" ); +pr_err ("RICHO RS5C313: invalid value, resetting to 1 Jan 2000\n" );You could remove the "RICH0 RS5C313: "prefix,
pr_fmtadds it (more or less).
OK, I will remove it.
Thank you.
Best regards,
Jingoo Han
PATCH v2 8/11 rtc: rtc-vr41xx: use dev_info() instead of printk()
In reply to Jingoo HanFixed the checkpatch warning as below:
WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ...
---
No changes since v1:
drivers/rtc/rtc-vr41xx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/rtc/rtc-vr41xx.c +1 -1
@@ -352,7 +352,7 @@ static int rtc_probe(struct platform_device *pdev)disable_irq (aie_irq);disable_irq (pie_irq); -printk (KERN_INFO "rtc: Real Time Clock of NEC VR4100 series\n" ); +dev_info (&pdev->dev,"Real Time Clock of NEC VR4100 series\n" );return 0 ;
Signature · 1 line
1.7.2.5
PATCH v2 9/11 rtc: rtc-sun4v: use pr_warn() instead of printk()
In reply to Jingoo HanFixed the checkpatch warning as below:
WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ...
---
No changes since v1:
drivers/rtc/rtc-sun4v.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-)
drivers/rtc/rtc-sun4v.c +6 -4
@@ -3,6 +3,8 @@* Copyright (C) 2008 David S. Miller <[email protected]> */ +#define pr_fmt (fmt) KBUILD_MODNAME ": " fmt +#include <linux/kernel.h> #include <linux/module.h> #include <linux/delay.h>
@@ -26,10 +28,10 @@ retry:udelay (100 ); goto retry; } -printk (KERN_WARNING "SUN4V: tod_get() timed out.\n" ); +pr_warn ("tod_get() timed out.\n" );return 0 ; } -printk (KERN_WARNING "SUN4V: tod_get() not supported.\n" ); +pr_warn ("tod_get() not supported.\n" );return 0 ; }
@@ -53,10 +55,10 @@ retry:udelay (100 ); goto retry; } -printk (KERN_WARNING "SUN4V: tod_set() timed out.\n" ); +pr_warn ("tod_set() timed out.\n" );return -EAGAIN ; } -printk (KERN_WARNING "SUN4V: tod_set() not supported.\n" ); +pr_warn ("tod_set() not supported.\n" );return -EOPNOTSUPP ; }
Signature · 1 line
1.7.2.5
PATCH v2 10/11 rtc: rtc-pcf8583: use dev_warn() instead of printk()
In reply to Jingoo HanFixed the checkpatch warning as below:
WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ...
---
No changes since v1:
drivers/rtc/rtc-pcf8583.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/rtc/rtc-pcf8583.c +1 -1
@@ -185,7 +185,7 @@ static int pcf8583_rtc_read_time(struct device *dev, struct rtc_time *tm)if (ctrl & (CTRL_STOP |CTRL_HOLD )) {unsigned char new_ctrl = ctrl & ~(CTRL_STOP |CTRL_HOLD ); -printk (KERN_WARNING "RTC: resetting control %02x -> %02x\n" , +dev_warn (dev,"RTC: resetting control %02x -> %02x\n" , ctrl, new_ctrl);if ((err =pcf8583_set_ctrl (client, &new_ctrl)) <0 )
Signature · 1 line
1.7.2.5
PATCH v2 11/11 rtc: rtc-cmos: use dev_warn()/dev_dbg() instead of printk()/pr_debug()
In reply to Jingoo HanFixed the checkpatch warning as below:
WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ...
---
No changes since v1:
drivers/rtc/rtc-cmos.c | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-)
drivers/rtc/rtc-cmos.c +4 -8
@@ -706,7 +706,7 @@ cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq) rtc_cmos_int_handler = hpet_rtc_interrupt; err =hpet_register_irq_handler (cmos_interrupt);if (err !=0 ) { -printk (KERN_WARNING "hpet_register_irq_handler " +dev_warn (dev,"hpet_register_irq_handler " " failed in rtc_init()." ); goto cleanup1; }
@@ -731,8 +731,7 @@ cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq) goto cleanup2; } -pr_info ("%s: %s%s, %zd bytes nvram%s\n" , -dev_name (&cmos_rtc.rtc->dev), +dev_info (dev,"%s%s, %zd bytes nvram%s\n" , !is_valid_irq (rtc_irq) ?"no alarms" : cmos_rtc.mon_alrm ?"alarms up to one year" : cmos_rtc.day_alrm ? "alarms up to one month" :
@@ -820,8 +819,7 @@ static int cmos_suspend(struct device *dev)enable_irq_wake (cmos->irq); } -pr_debug ("%s: suspend%s, ctrl %02x\n" , -dev_name (&cmos_rtc.rtc->dev), +dev_dbg (dev,"suspend%s, ctrl %02x\n" , (tmp &RTC_AIE ) ?", alarm may wake" :"" , tmp);
@@ -876,9 +874,7 @@ static int cmos_resume(struct device *dev)spin_unlock_irq (&rtc_lock); } -pr_debug ("%s: resume, ctrl %02x\n" , -dev_name (&cmos_rtc.rtc->dev), - tmp); +dev_dbg (dev,"resume, ctrl %02x\n" , tmp);return 0 ; }
Signature · 1 line
1.7.2.5