diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-06-10 09:05:55 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-06-10 09:05:55 +0000 |
commit | 90ca9a582dcbdc6dd4f8f7f6ab015c0fe99ce1e8 (patch) | |
tree | 9221af3276e32c425b3b2103c075060c96ed61da /target/linux/atheros/patches-3.10/120-spiflash.patch | |
parent | 15a2ebbc38bc7e7a5fd3920962aab2de58ca8461 (diff) | |
download | upstream-90ca9a582dcbdc6dd4f8f7f6ab015c0fe99ce1e8.tar.gz upstream-90ca9a582dcbdc6dd4f8f7f6ab015c0fe99ce1e8.tar.bz2 upstream-90ca9a582dcbdc6dd4f8f7f6ab015c0fe99ce1e8.zip |
atheros: various printk(...) fixes
Use more particular functions dev_<level> or pr_<level>(...) insead of
direct printk(...) call. Add KERN_LEVEL to calls what missed it.
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 41088
Diffstat (limited to 'target/linux/atheros/patches-3.10/120-spiflash.patch')
-rw-r--r-- | target/linux/atheros/patches-3.10/120-spiflash.patch | 8 |
1 files changed, 4 insertions, 4 deletions
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; + } + |