Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4508
b: refs/heads/master
c: fb6bb52
h: refs/heads/master
v: v3
  • Loading branch information
Ben Dooks authored and Thomas Gleixner committed May 23, 2005
1 parent 06de731 commit dd8c4ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3b946e3f3dc0de473a88b4106f01731a5c016689
refs/heads/master: fb6bb52ddde0429b654ab6d4cb20fa016a1d5b0d
12 changes: 2 additions & 10 deletions trunk/drivers/mtd/maps/plat-ram.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generic platfrom device based RAM map
*
* $Id: plat-ram.c,v 1.1 2005/01/24 00:37:02 bjd Exp $
* $Id: plat-ram.c,v 1.2 2005/03/14 20:33:19 bjd Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -23,8 +23,6 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

#define DEBUG

#include <linux/module.h>
#include <linux/types.h>
#include <linux/init.h>
Expand Down Expand Up @@ -192,20 +190,14 @@ static int platram_probe(struct device *dev)
/* remap the memory area */

info->map.virt = ioremap(res->start, info->map.size);
dev_dbg(dev, "virt %p, %d bytes\n", info->map.virt, info->map.size);
dev_dbg(dev, "virt %p, %lu bytes\n", info->map.virt, info->map.size);

if (info->map.virt == NULL) {
dev_err(dev, "failed to ioremap() region\n");
err = -EIO;
goto exit_free;
}

{
unsigned int *p = (unsigned int *)info->map.virt;
printk("%08x %08x %08x %08x\n",
readl(p), readl(p+1), readl(p+2), readl(p+3));
}

simple_map_init(&info->map);

dev_dbg(dev, "initialised map, probing for mtd\n");
Expand Down

0 comments on commit dd8c4ec

Please sign in to comment.