aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps
diff options
context:
space:
mode:
authorBen Dooks <ben@simtec.co.uk>2005-03-14 15:33:22 -0500
committerThomas Gleixner <tglx@mtd.linutronix.de>2005-05-23 06:52:23 -0400
commitfb6bb52ddde0429b654ab6d4cb20fa016a1d5b0d (patch)
treef72aa6e78887abccce1427e7c2dfd7458731a17f /drivers/mtd/maps
parent3b946e3f3dc0de473a88b4106f01731a5c016689 (diff)
[MTD] plat-ram: removed extraneous debugging code
removed define of DEBUG removed extraneous debugging code Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/mtd/maps')
-rw-r--r--drivers/mtd/maps/plat-ram.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/mtd/maps/plat-ram.c b/drivers/mtd/maps/plat-ram.c
index 808f94346add..f7e6dad50ca3 100644
--- a/drivers/mtd/maps/plat-ram.c
+++ b/drivers/mtd/maps/plat-ram.c
@@ -6,7 +6,7 @@
6 * 6 *
7 * Generic platfrom device based RAM map 7 * Generic platfrom device based RAM map
8 * 8 *
9 * $Id: plat-ram.c,v 1.1 2005/01/24 00:37:02 bjd Exp $ 9 * $Id: plat-ram.c,v 1.2 2005/03/14 20:33:19 bjd Exp $
10 * 10 *
11 * This program is free software; you can redistribute it and/or modify 11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by 12 * it under the terms of the GNU General Public License as published by
@@ -23,8 +23,6 @@
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24*/ 24*/
25 25
26#define DEBUG
27
28#include <linux/module.h> 26#include <linux/module.h>
29#include <linux/types.h> 27#include <linux/types.h>
30#include <linux/init.h> 28#include <linux/init.h>
@@ -192,7 +190,7 @@ static int platram_probe(struct device *dev)
192 /* remap the memory area */ 190 /* remap the memory area */
193 191
194 info->map.virt = ioremap(res->start, info->map.size); 192 info->map.virt = ioremap(res->start, info->map.size);
195 dev_dbg(dev, "virt %p, %d bytes\n", info->map.virt, info->map.size); 193 dev_dbg(dev, "virt %p, %lu bytes\n", info->map.virt, info->map.size);
196 194
197 if (info->map.virt == NULL) { 195 if (info->map.virt == NULL) {
198 dev_err(dev, "failed to ioremap() region\n"); 196 dev_err(dev, "failed to ioremap() region\n");
@@ -200,12 +198,6 @@ static int platram_probe(struct device *dev)
200 goto exit_free; 198 goto exit_free;
201 } 199 }
202 200
203 {
204 unsigned int *p = (unsigned int *)info->map.virt;
205 printk("%08x %08x %08x %08x\n",
206 readl(p), readl(p+1), readl(p+2), readl(p+3));
207 }
208
209 simple_map_init(&info->map); 201 simple_map_init(&info->map);
210 202
211 dev_dbg(dev, "initialised map, probing for mtd\n"); 203 dev_dbg(dev, "initialised map, probing for mtd\n");