[MTD] [NAND] Blackfin NFC Driver: use standard dev_err() rather than printk()

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Aug 1 10:59:02 EDT 2008


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=0ee002b041cb45ab3cc5384b86271d41ccf90fe1
Commit:     0ee002b041cb45ab3cc5384b86271d41ccf90fe1
Parent:     a0dd20184becf5c90996d9ee0bb69426fe63581a
Author:     Mike Frysinger <vapier.adi at gmail.com>
AuthorDate: Wed Jul 30 12:35:03 2008 -0700
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Aug 1 15:43:53 2008 +0100

    [MTD] [NAND] Blackfin NFC Driver: use standard dev_err() rather than printk()
    
    Signed-off-by: Mike Frysinger <vapier.adi at gmail.com>
    Signed-off-by: Bryan Wu <cooloney at kernel.org>
    Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/nand/bf5xx_nand.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/bf5xx_nand.c b/drivers/mtd/nand/bf5xx_nand.c
index e259a7b..6cf7fb8 100644
--- a/drivers/mtd/nand/bf5xx_nand.c
+++ b/drivers/mtd/nand/bf5xx_nand.c
@@ -684,8 +684,7 @@ static int __devinit bf5xx_nand_probe(struct platform_device *pdev)
 	dev_dbg(&pdev->dev, "(%p)\n", pdev);
 
 	if (peripheral_request_list(bfin_nfc_pin_req, DRV_NAME)) {
-		printk(KERN_ERR DRV_NAME
-		": Requesting Peripherals failed\n");
+		dev_err(&pdev->dev, "requesting Peripherals failed\n");
 		return -EFAULT;
 	}
 



More information about the linux-mtd-cvs mailing list