-
Notifications
You must be signed in to change notification settings - Fork 53.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MTD] maps: Clean up trailing white spaces
Signed-off-by: Thomas Gleixner <[email protected]>
- Loading branch information
Showing
61 changed files
with
470 additions
and
470 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
/* | ||
* Flash memory access on AMD Alchemy evaluation boards | ||
* | ||
* $Id: alchemy-flash.c,v 1.1 2005/02/27 21:50:21 ppopov Exp $ | ||
* | ||
* $Id: alchemy-flash.c,v 1.2 2005/11/07 11:14:26 gleixner Exp $ | ||
* | ||
* (C) 2003, 2004 Pete Popov <[email protected]> | ||
* | ||
* | ||
*/ | ||
|
||
#include <linux/config.h> | ||
|
@@ -22,7 +22,7 @@ | |
#ifdef DEBUG_RW | ||
#define DBG(x...) printk(x) | ||
#else | ||
#define DBG(x...) | ||
#define DBG(x...) | ||
#endif | ||
|
||
#ifdef CONFIG_MIPS_PB1000 | ||
|
@@ -136,7 +136,7 @@ int __init alchemy_mtd_init(void) | |
int nb_parts = 0; | ||
unsigned long window_addr; | ||
unsigned long window_size; | ||
|
||
/* Default flash buswidth */ | ||
alchemy_map.bankwidth = BOARD_FLASH_WIDTH; | ||
|
||
|
@@ -161,7 +161,7 @@ int __init alchemy_mtd_init(void) | |
* Now let's probe for the actual flash. Do it here since | ||
* specific machine settings might have been set above. | ||
*/ | ||
printk(KERN_NOTICE BOARD_MAP_NAME ": probing %d-bit flash bus\n", | ||
printk(KERN_NOTICE BOARD_MAP_NAME ": probing %d-bit flash bus\n", | ||
alchemy_map.bankwidth*8); | ||
alchemy_map.virt = ioremap(window_addr, window_size); | ||
mymtd = do_map_probe("cfi_probe", &alchemy_map); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/* | ||
* NV-RAM memory access on autcpu12 | ||
* NV-RAM memory access on autcpu12 | ||
* (C) 2002 Thomas Gleixner ([email protected]) | ||
* | ||
* $Id: autcpu12-nvram.c,v 1.8 2004/11/04 13:24:14 gleixner Exp $ | ||
* $Id: autcpu12-nvram.c,v 1.9 2005/11/07 11:14:26 gleixner 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 | ||
|
@@ -55,18 +55,18 @@ static int __init init_autcpu12_sram (void) | |
} | ||
simple_map_init(&autcpu_sram_map); | ||
|
||
/* | ||
* Check for 32K/128K | ||
* read ofs 0 | ||
* read ofs 0x10000 | ||
/* | ||
* Check for 32K/128K | ||
* read ofs 0 | ||
* read ofs 0x10000 | ||
* Write complement to ofs 0x100000 | ||
* Read and check result on ofs 0x0 | ||
* Restore contents | ||
*/ | ||
save0 = map_read32(&autcpu12_sram_map,0); | ||
save1 = map_read32(&autcpu12_sram_map,0x10000); | ||
map_write32(&autcpu12_sram_map,~save0,0x10000); | ||
/* if we find this pattern on 0x0, we have 32K size | ||
/* if we find this pattern on 0x0, we have 32K size | ||
* restore contents and exit | ||
*/ | ||
if ( map_read32(&autcpu12_sram_map,0) != save0) { | ||
|
@@ -89,15 +89,15 @@ static int __init init_autcpu12_sram (void) | |
|
||
sram_mtd->owner = THIS_MODULE; | ||
sram_mtd->erasesize = 16; | ||
|
||
if (add_mtd_device(sram_mtd)) { | ||
printk("NV-RAM device addition failed\n"); | ||
err = -ENOMEM; | ||
goto out_probe; | ||
} | ||
|
||
printk("NV-RAM device size %ldKiB registered on AUTCPU12\n",autcpu12_sram_map.size/SZ_1K); | ||
|
||
return 0; | ||
|
||
out_probe: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.