]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: nand: convert printk() to pr_*()
authorBrian Norris <computersforpeace@gmail.com>
Tue, 19 Jul 2011 17:06:07 +0000 (10:06 -0700)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 16 Aug 2011 13:46:03 +0000 (16:46 +0300)
commitd1348a21b70ce405ab083cc4c0e5c31cb710a28c
tree2c8393e4c9ff61c29532865b3e8ec5820e24d0b4
parentddcdd7993ba682d15168548cdd8711c39e4c5bfa
mtd: nand: convert printk() to pr_*()

Instead of directly calling printk, it's simpler to use the built-in
pr_* functions. This shortens code and allows easy customization through
the definition of a pr_fmt() macro (not used currently). Ideally, we
could implement much of this with dev_* functions, but the MTD subsystem
does not necessarily register all its master `mtd_info.dev` device, so
we cannot use dev_* consistently. See:
http://lists.infradead.org/pipermail/linux-mtd/2011-July/036950.html

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
drivers/mtd/nand/nand_base.c
drivers/mtd/nand/nand_bbt.c