mtd: bcm47xxnflash: use pr_fmt for module prefix in messages
authorRafał Miłecki <zajec5@gmail.com>
Thu, 7 Feb 2013 10:56:04 +0000 (11:56 +0100)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 13 Feb 2013 13:15:50 +0000 (15:15 +0200)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/nand/bcm47xxnflash/bcm47xxnflash.h
drivers/mtd/nand/bcm47xxnflash/main.c
drivers/mtd/nand/bcm47xxnflash/ops_bcm4706.c

index 0bdb2ce4da7510f7630d3ec382c79092e83258b9..c005a62330b14f5444a6d5d5e65961fa27e6ce31 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef __BCM47XXNFLASH_H
 #define __BCM47XXNFLASH_H
 
+#ifndef pr_fmt
+#define pr_fmt(fmt)            KBUILD_MODNAME ": " fmt
+#endif
+
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/nand.h>
 
index a52acdccd0c4a83ced68f678c06c67ebf4b3b3c0..7bae569fdc79880e5025a5db3e93dd34da274598 100644 (file)
@@ -9,14 +9,14 @@
  *
  */
 
+#include "bcm47xxnflash.h"
+
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
 #include <linux/platform_device.h>
 #include <linux/bcma/bcma.h>
 
-#include "bcm47xxnflash.h"
-
 MODULE_DESCRIPTION("NAND flash driver for BCMA bus");
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Rafał Miłecki");
index 86c9a79b89b3e863f9377eebb8c9b6ae18500dd9..37d5b895669442afdfb6b536968aaffd31d0e8c7 100644 (file)
@@ -9,13 +9,13 @@
  *
  */
 
+#include "bcm47xxnflash.h"
+
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
 #include <linux/bcma/bcma.h>
 
-#include "bcm47xxnflash.h"
-
 /* Broadcom uses 1'000'000 but it seems to be too many. Tests on WNDR4500 has
  * shown 164 retries as maxiumum. */
 #define NFLASH_READY_RETRIES           1000