summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/chips
diff options
context:
space:
mode:
authorGuillaume LECERF <glecerf@gmail.com>2010-04-24 17:58:32 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-05-14 02:39:55 +0200
commit087444da61ed972b3c2bfbf7dcf317cb4475f143 (patch)
tree25ebf8f300d9c9a550581361811c1df3ca239998 /drivers/mtd/chips
parentmtd: cfi_cmdset_0002: add CFI detection for SST 39VF{32, 64}xxB chips (diff)
downloadlinux-087444da61ed972b3c2bfbf7dcf317cb4475f143.tar.xz
linux-087444da61ed972b3c2bfbf7dcf317cb4475f143.zip
mtd: cfi_util: do not printk if no extended query table
Signed-off-by: Guillaume LECERF <glecerf@gmail.com> Reviewed-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/chips')
-rw-r--r--drivers/mtd/chips/cfi_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/chips/cfi_util.c b/drivers/mtd/chips/cfi_util.c
index ca584d0380b4..d7c2c672757e 100644
--- a/drivers/mtd/chips/cfi_util.c
+++ b/drivers/mtd/chips/cfi_util.c
@@ -104,10 +104,11 @@ __xipram cfi_read_pri(struct map_info *map, __u16 adr, __u16 size, const char* n
int i;
struct cfi_extquery *extp = NULL;
- printk(" %s Extended Query Table at 0x%4.4X\n", name, adr);
if (!adr)
goto out;
+ printk(KERN_INFO "%s Extended Query Table at 0x%4.4X\n", name, adr);
+
extp = kmalloc(size, GFP_KERNEL);
if (!extp) {
printk(KERN_ERR "Failed to allocate memory\n");