diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-02-06 01:14:33 -0500 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-03-11 01:42:24 -0400 |
commit | 54f5a57e266318d72f84fda95805099986a7e201 (patch) | |
tree | 9f68c0ecc038355c8f2773b92d71f1d9f67c7a03 /drivers | |
parent | e61e4f40b1f3a34fa370f7fda1bff6d66032516d (diff) |
mtd: lpddr: Remove unnecessary OOM messages
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/lpddr/lpddr_cmds.c | 4 | ||||
-rw-r--r-- | drivers/mtd/lpddr/qinfo_probe.c | 5 |
2 files changed, 2 insertions, 7 deletions
diff --git a/drivers/mtd/lpddr/lpddr_cmds.c b/drivers/mtd/lpddr/lpddr_cmds.c index d38b6460d505..018c75faadb3 100644 --- a/drivers/mtd/lpddr/lpddr_cmds.c +++ b/drivers/mtd/lpddr/lpddr_cmds.c | |||
@@ -55,10 +55,8 @@ struct mtd_info *lpddr_cmdset(struct map_info *map) | |||
55 | int i, j; | 55 | int i, j; |
56 | 56 | ||
57 | mtd = kzalloc(sizeof(*mtd), GFP_KERNEL); | 57 | mtd = kzalloc(sizeof(*mtd), GFP_KERNEL); |
58 | if (!mtd) { | 58 | if (!mtd) |
59 | printk(KERN_ERR "Failed to allocate memory for MTD device\n"); | ||
60 | return NULL; | 59 | return NULL; |
61 | } | ||
62 | mtd->priv = map; | 60 | mtd->priv = map; |
63 | mtd->type = MTD_NORFLASH; | 61 | mtd->type = MTD_NORFLASH; |
64 | 62 | ||
diff --git a/drivers/mtd/lpddr/qinfo_probe.c b/drivers/mtd/lpddr/qinfo_probe.c index 45abed67f1ef..69f2112340b1 100644 --- a/drivers/mtd/lpddr/qinfo_probe.c +++ b/drivers/mtd/lpddr/qinfo_probe.c | |||
@@ -135,11 +135,8 @@ static int lpddr_chip_setup(struct map_info *map, struct lpddr_private *lpddr) | |||
135 | { | 135 | { |
136 | 136 | ||
137 | lpddr->qinfo = kzalloc(sizeof(struct qinfo_chip), GFP_KERNEL); | 137 | lpddr->qinfo = kzalloc(sizeof(struct qinfo_chip), GFP_KERNEL); |
138 | if (!lpddr->qinfo) { | 138 | if (!lpddr->qinfo) |
139 | printk(KERN_WARNING "%s: no memory for LPDDR qinfo structure\n", | ||
140 | map->name); | ||
141 | return 0; | 139 | return 0; |
142 | } | ||
143 | 140 | ||
144 | /* Get the ManuID */ | 141 | /* Get the ManuID */ |
145 | lpddr->ManufactId = CMDVAL(map_read(map, map->pfow_base + PFOW_MANUFACTURER_ID)); | 142 | lpddr->ManufactId = CMDVAL(map_read(map, map->pfow_base + PFOW_MANUFACTURER_ID)); |