Skip to content

Commit

Permalink
mtd: bcm47xxnflash: use pr_fmt for module prefix in messages
Browse files Browse the repository at this point in the history
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
  • Loading branch information
Rafał Miłecki authored and Artem Bityutskiy committed Feb 13, 2013
1 parent ef4e0c2 commit be0638d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions drivers/mtd/nand/bcm47xxnflash/bcm47xxnflash.h
Original file line number Diff line number Diff line change
@@ -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>

Expand Down
4 changes: 2 additions & 2 deletions drivers/mtd/nand/bcm47xxnflash/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions drivers/mtd/nand/bcm47xxnflash/ops_bcm4706.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be0638d

Please sign in to comment.