Skip to content

Commit be0638d

Browse files
rmileckidedekind
authored andcommitted
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>
1 parent ef4e0c2 commit be0638d

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎drivers/mtd/nand/bcm47xxnflash/bcm47xxnflash.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#ifndef __BCM47XXNFLASH_H
22
#define __BCM47XXNFLASH_H
33

4+
#ifndef pr_fmt
5+
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
6+
#endif
7+
48
#include <linux/mtd/mtd.h>
59
#include <linux/mtd/nand.h>
610

‎drivers/mtd/nand/bcm47xxnflash/main.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
*
1010
*/
1111

12+
#include "bcm47xxnflash.h"
13+
1214
#include <linux/module.h>
1315
#include <linux/kernel.h>
1416
#include <linux/slab.h>
1517
#include <linux/platform_device.h>
1618
#include <linux/bcma/bcma.h>
1719

18-
#include "bcm47xxnflash.h"
19-
2020
MODULE_DESCRIPTION("NAND flash driver for BCMA bus");
2121
MODULE_LICENSE("GPL");
2222
MODULE_AUTHOR("Rafał Miłecki");

‎drivers/mtd/nand/bcm47xxnflash/ops_bcm4706.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
*
1010
*/
1111

12+
#include "bcm47xxnflash.h"
13+
1214
#include <linux/module.h>
1315
#include <linux/kernel.h>
1416
#include <linux/slab.h>
1517
#include <linux/bcma/bcma.h>
1618

17-
#include "bcm47xxnflash.h"
18-
1919
/* Broadcom uses 1'000'000 but it seems to be too many. Tests on WNDR4500 has
2020
* shown 164 retries as maxiumum. */
2121
#define NFLASH_READY_RETRIES 1000

0 commit comments

Comments
 (0)