Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: bcm47xxnflash: use pr_fmt for module prefix in messages

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

authored by

Rafał Miłecki and committed by
Artem Bityutskiy
be0638d9 ef4e0c21

+8 -4
+4
drivers/mtd/nand/bcm47xxnflash/bcm47xxnflash.h
··· 1 1 #ifndef __BCM47XXNFLASH_H 2 2 #define __BCM47XXNFLASH_H 3 3 4 + #ifndef pr_fmt 5 + #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 6 + #endif 7 + 4 8 #include <linux/mtd/mtd.h> 5 9 #include <linux/mtd/nand.h> 6 10
+2 -2
drivers/mtd/nand/bcm47xxnflash/main.c
··· 9 9 * 10 10 */ 11 11 12 + #include "bcm47xxnflash.h" 13 + 12 14 #include <linux/module.h> 13 15 #include <linux/kernel.h> 14 16 #include <linux/slab.h> 15 17 #include <linux/platform_device.h> 16 18 #include <linux/bcma/bcma.h> 17 - 18 - #include "bcm47xxnflash.h" 19 19 20 20 MODULE_DESCRIPTION("NAND flash driver for BCMA bus"); 21 21 MODULE_LICENSE("GPL");
+2 -2
drivers/mtd/nand/bcm47xxnflash/ops_bcm4706.c
··· 9 9 * 10 10 */ 11 11 12 + #include "bcm47xxnflash.h" 13 + 12 14 #include <linux/module.h> 13 15 #include <linux/kernel.h> 14 16 #include <linux/slab.h> 15 17 #include <linux/bcma/bcma.h> 16 - 17 - #include "bcm47xxnflash.h" 18 18 19 19 /* Broadcom uses 1'000'000 but it seems to be too many. Tests on WNDR4500 has 20 20 * shown 164 retries as maxiumum. */