diff options
author | Guillaume LECERF <glecerf@gmail.com> | 2010-04-24 11:58:32 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-05-13 20:39:55 -0400 |
commit | 087444da61ed972b3c2bfbf7dcf317cb4475f143 (patch) | |
tree | 25ebf8f300d9c9a550581361811c1df3ca239998 /drivers/mtd | |
parent | 5a0563f0ad0c9864b735e9ae23e55f7fa9c73bf5 (diff) |
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')
-rw-r--r-- | drivers/mtd/chips/cfi_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/chips/cfi_util.c b/drivers/mtd/chips/cfi_util.c index ca584d0380b..d7c2c672757 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 | |||
104 | int i; | 104 | int i; |
105 | struct cfi_extquery *extp = NULL; | 105 | struct cfi_extquery *extp = NULL; |
106 | 106 | ||
107 | printk(" %s Extended Query Table at 0x%4.4X\n", name, adr); | ||
108 | if (!adr) | 107 | if (!adr) |
109 | goto out; | 108 | goto out; |
110 | 109 | ||
110 | printk(KERN_INFO "%s Extended Query Table at 0x%4.4X\n", name, adr); | ||
111 | |||
111 | extp = kmalloc(size, GFP_KERNEL); | 112 | extp = kmalloc(size, GFP_KERNEL); |
112 | if (!extp) { | 113 | if (!extp) { |
113 | printk(KERN_ERR "Failed to allocate memory\n"); | 114 | printk(KERN_ERR "Failed to allocate memory\n"); |