From 90ca9a582dcbdc6dd4f8f7f6ab015c0fe99ce1e8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 10 Jun 2014 09:05:55 +0000 Subject: atheros: various printk(...) fixes Use more particular functions dev_ or pr_(...) insead of direct printk(...) call. Add KERN_LEVEL to calls what missed it. Signed-off-by: Sergey Ryazanov SVN-Revision: 41088 --- target/linux/atheros/patches-3.10/120-spiflash.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'target/linux/atheros/patches-3.10/120-spiflash.patch') diff --git a/target/linux/atheros/patches-3.10/120-spiflash.patch b/target/linux/atheros/patches-3.10/120-spiflash.patch index ef9cb91622..7876de18fb 100644 --- a/target/linux/atheros/patches-3.10/120-spiflash.patch +++ b/target/linux/atheros/patches-3.10/120-spiflash.patch @@ -251,7 +251,7 @@ + flash_size = FLASH_16MB; + break; + default: -+ printk (KERN_WARNING SPIFLASH "Read of flash device signature failed!\n"); ++ pr_warn(SPIFLASH "Read of flash device signature failed!\n"); + return 0; + } + @@ -454,19 +454,19 @@ + + priv->mmraddr = ioremap_nocache(SPI_FLASH_MMR, SPI_FLASH_MMR_SIZE); + if (!priv->mmraddr) { -+ printk(KERN_WARNING SPIFLASH "Failed to map flash device\n"); ++ dev_warn(&pdev->dev, SPIFLASH "Failed to map flash device\n"); + goto error; + } + + index = spiflash_probe_chip(priv); + if (!index) { -+ printk (KERN_WARNING SPIFLASH "Found no serial flash device\n"); ++ dev_warn(&pdev->dev, SPIFLASH "Found no flash device\n"); + goto error; + } + + priv->readaddr = ioremap_nocache(SPI_FLASH_READ, flashconfig_tbl[index].byte_cnt); + if (!priv->readaddr) { -+ printk (KERN_WARNING SPIFLASH "Failed to map flash device\n"); ++ dev_warn(&pdev->dev, SPIFLASH "Failed to map flash device\n"); + goto error; + } + -- cgit v1.2.3