Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4456
b: refs/heads/master
c: 6fc93d8
h: refs/heads/master
v: v3
  • Loading branch information
Ben Dooks authored and Thomas Gleixner committed May 23, 2005
1 parent 4d7707a commit b9bacc3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: 97f1a087dc83cac54d740bf24888e565962b8f4d
refs/heads/master: 6fc93d8ca7a093feb403aca4ee3cb5bda338392c
13 changes: 8 additions & 5 deletions trunk/drivers/mtd/maps/bast-flash.c
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/* linux/drivers/mtd/maps/bast_flash.c
*
* Copyright (c) 2004 Simtec Electronics
* Ben Dooks <ben@simtec.co.uk>
* Copyright (c) 2004-2005 Simtec Electronics
* Ben Dooks <ben@simtec.co.uk>
*
* Simtec Bast (EB2410ITX) NOR MTD Mapping driver
*
* Changelog:
* 20-Sep-2004 BJD Initial version
* 17-Jan-2005 BJD Add whole device if no partitions found
*
* $Id: bast-flash.c,v 1.1 2004/09/21 14:29:04 bjd Exp $
* $Id: bast-flash.c,v 1.2 2005/01/18 11:13:47 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 Down Expand Up @@ -46,9 +47,9 @@
#include <asm/arch/bast-cpld.h>

#ifdef CONFIG_MTD_BAST_MAXSIZE
#define AREA_MAXSIZE (CONFIG_MTD_BAST_MAXSIZE * (1024*1024))
#define AREA_MAXSIZE (CONFIG_MTD_BAST_MAXSIZE * SZ_1M)
#else
#define AREA_MAXSIZE (32*1024*1024)
#define AREA_MAXSIZE (32 * SZ_1M)
#endif

#define PFX "bast-flash: "
Expand Down Expand Up @@ -189,6 +190,8 @@ static int bast_flash_probe(struct device *dev)
err = add_mtd_partitions(info->mtd, info->partitions, err);
if (err)
printk(KERN_ERR PFX "cannot add/parse partitions\n");
} else {
err = add_mtd_device(info->mtd);
}

if (err == 0)
Expand Down

0 comments on commit b9bacc3

Please sign in to comment.