diff options
author | Ebru Akagunduz <ebru.akagunduz@gmail.com> | 2014-10-02 23:32:06 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-02 13:51:03 -0700 |
commit | fb71d24bdc3a212a497ff889f25f00c9a9e8546b (patch) | |
tree | c85e5e9669f240b77c37562793f442b7a764c56b /drivers/staging | |
parent | 4571c4f6f61730c4f3624b6d3cb9ab042297949b (diff) | |
download | linux-fb71d24bdc3a212a497ff889f25f00c9a9e8546b.tar.bz2 |
staging: emxx_udc: Fix replace printk(KERN_DEBUG ..) with dev_dbg
This patch fixes "Prefer [subsystem eg: netdev]_dbg([subsystem]dev,
... then dev_dbg(dev, ... then pr_debug(... to printk(KERN_DEBUG"
checkpatch.pl warning in emxx_udc.c
Changes in v2:
- Fixed dev_debug function call as dev_dbg
Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/emxx_udc/emxx_udc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c index 3c8d723e7449..44fd58a95592 100644 --- a/drivers/staging/emxx_udc/emxx_udc.c +++ b/drivers/staging/emxx_udc/emxx_udc.c @@ -121,23 +121,23 @@ static void _nbu2ss_dump_register(struct nbu2ss_udc *udc) spin_unlock(&udc->lock); - printk(KERN_DEBUG "\n-USB REG-\n"); + dev_dbg(&udc->dev, "\n-USB REG-\n"); for (i = 0x0 ; i < USB_BASE_SIZE ; i += 16) { reg_data = _nbu2ss_readl( (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i)); - printk(KERN_DEBUG "USB%04x =%08x", i, (int)reg_data); + dev_dbg(&udc->dev, "USB%04x =%08x", i, (int)reg_data); reg_data = _nbu2ss_readl( (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i + 4)); - printk(KERN_DEBUG " %08x", (int)reg_data); + dev_dbg(&udc->dev, " %08x", (int)reg_data); reg_data = _nbu2ss_readl( (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i + 8)); - printk(KERN_DEBUG " %08x", (int)reg_data); + dev_dbg(&udc->dev, " %08x", (int)reg_data); reg_data = _nbu2ss_readl( (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i + 12)); - printk(KERN_DEBUG " %08x\n", (int)reg_data); + dev_dbg(&udc->dev, " %08x\n", (int)reg_data); } |