aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/patches-3.10/120-spiflash.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-06-10 09:05:55 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-06-10 09:05:55 +0000
commitd5ce5c199b62e4a990ff4b2ae6a9c2c67afca3c3 (patch)
treef83d40c34965bed979b5633dc262e0502268bc34 /target/linux/atheros/patches-3.10/120-spiflash.patch
parent7b39c7666012a62e7d3a381dc71e5101898dc19a (diff)
downloadmaster-187ad058-d5ce5c199b62e4a990ff4b2ae6a9c2c67afca3c3.tar.gz
master-187ad058-d5ce5c199b62e4a990ff4b2ae6a9c2c67afca3c3.tar.bz2
master-187ad058-d5ce5c199b62e4a990ff4b2ae6a9c2c67afca3c3.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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41088 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros/patches-3.10/120-spiflash.patch')
-rw-r--r--target/linux/atheros/patches-3.10/120-spiflash.patch8
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;
+ }
+