Skip to content

Commit

Permalink
staging: mt7621-mmc: replace printk with preferred API
Browse files Browse the repository at this point in the history
Replace calls to `printk` with `dev_info` and `pr_err`
Issues found with checkpatch.pl

Signed-off-by: Dafna Hirschfeld <dafna3@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Dafna Hirschfeld authored and Greg Kroah-Hartman committed Oct 2, 2018
1 parent ffa8ed1 commit 7b6e286
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/mt7621-mmc/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1695,8 +1695,8 @@ static irqreturn_t msdc_irq(int irq, void *dev_id)

/* mmc irq interrupts */
if (intsts & MSDC_INT_MMCIRQ)
printk(KERN_INFO "msdc[%d] MMCIRQ: SDC_CSTS=0x%.8x\r\n",
host->id, readl(host->base + SDC_CSTS));
dev_info(mmc_dev(host->mmc), "msdc[%d] MMCIRQ: SDC_CSTS=0x%.8x\r\n",
host->id, readl(host->base + SDC_CSTS));

return IRQ_HANDLED;
}
Expand Down Expand Up @@ -2131,7 +2131,7 @@ static int __init mt_msdc_init(void)

ret = platform_driver_register(&mt_msdc_driver);
if (ret) {
printk(KERN_ERR DRV_NAME ": Can't register driver");
pr_err("%s: Can't register driver", DRV_NAME);
return ret;
}

Expand Down

0 comments on commit 7b6e286

Please sign in to comment.