Commit b03c248a authored by David Woodhouse's avatar David Woodhouse

MTD NAND drivers: cleanup MODULE_PARAM and bogus __iomem casts.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 263d874e
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* Derived from drivers/mtd/spia.c * Derived from drivers/mtd/spia.c
* Copyright (C) 2000 Steven J. Hill (sjhill@realitydiluted.com) * Copyright (C) 2000 Steven J. Hill (sjhill@realitydiluted.com)
* *
* $Id: autcpu12.c,v 1.21 2004/09/16 23:27:14 gleixner Exp $ * $Id: autcpu12.c,v 1.22 2004/11/04 12:53:10 gleixner Exp $
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
...@@ -50,16 +50,6 @@ static int autcpu12_fio_ctrl = AUTCPU12_SMC_SELECT_OFFSET; ...@@ -50,16 +50,6 @@ static int autcpu12_fio_ctrl = AUTCPU12_SMC_SELECT_OFFSET;
static int autcpu12_pedr = AUTCPU12_SMC_PORT_OFFSET; static int autcpu12_pedr = AUTCPU12_SMC_PORT_OFFSET;
static void __iomem * autcpu12_fio_base; static void __iomem * autcpu12_fio_base;
#ifdef MODULE
MODULE_PARM(autcpu12_fio_pbase, "i");
MODULE_PARM(autcpu12_fio_ctrl, "i");
MODULE_PARM(autcpu12_pedr, "i");
__setup("autcpu12_fio_pbase=",autcpu12_fio_pbase);
__setup("autcpu12_fio_ctrl=",autcpu12_fio_ctrl);
__setup("autcpu12_pedr=",autcpu12_pedr);
#endif
/* /*
* Define partitions for flash devices * Define partitions for flash devices
*/ */
...@@ -150,7 +140,7 @@ int __init autcpu12_init (void) ...@@ -150,7 +140,7 @@ int __init autcpu12_init (void)
} }
/* map physical adress */ /* map physical adress */
autcpu12_fio_base=(void __iomem *)ioremap(autcpu12_fio_pbase,SZ_1K); autcpu12_fio_base = ioremap(autcpu12_fio_pbase,SZ_1K);
if(!autcpu12_fio_base){ if(!autcpu12_fio_base){
printk("Ioremap autcpu12 SmartMedia Card failed\n"); printk("Ioremap autcpu12 SmartMedia Card failed\n");
err = -EIO; err = -EIO;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* Derived from drivers/mtd/nand/autcpu12.c * Derived from drivers/mtd/nand/autcpu12.c
* Copyright (c) 2001 Thomas Gleixner (gleixner@autronix.de) * Copyright (c) 2001 Thomas Gleixner (gleixner@autronix.de)
* *
* $Id: edb7312.c,v 1.10 2004/10/05 13:50:20 gleixner Exp $ * $Id: edb7312.c,v 1.11 2004/11/04 12:53:10 gleixner Exp $
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
...@@ -57,16 +57,6 @@ static unsigned long ep7312_fio_pbase = EP7312_FIO_PBASE; ...@@ -57,16 +57,6 @@ static unsigned long ep7312_fio_pbase = EP7312_FIO_PBASE;
static void __iomem * ep7312_pxdr = (void __iomem *) EP7312_PXDR; static void __iomem * ep7312_pxdr = (void __iomem *) EP7312_PXDR;
static void __iomem * ep7312_pxddr = (void __iomem *) EP7312_PXDDR; static void __iomem * ep7312_pxddr = (void __iomem *) EP7312_PXDDR;
#ifdef MODULE
MODULE_PARM(ep7312_fio_pbase, "i");
MODULE_PARM(ep7312_pxdr, "i");
MODULE_PARM(ep7312_pxddr, "i");
__setup("ep7312_fio_pbase=",ep7312_fio_pbase);
__setup("ep7312_pxdr=",ep7312_pxdr);
__setup("ep7312_pxddr=",ep7312_pxddr);
#endif
#ifdef CONFIG_MTD_PARTITIONS #ifdef CONFIG_MTD_PARTITIONS
/* /*
* Define static partitions for flash device * Define static partitions for flash device
...@@ -143,7 +133,7 @@ static int __init ep7312_init (void) ...@@ -143,7 +133,7 @@ static int __init ep7312_init (void)
} }
/* map physical adress */ /* map physical adress */
ep7312_fio_base = (void __iomem *)ioremap(ep7312_fio_pbase, SZ_1K); ep7312_fio_base = ioremap(ep7312_fio_pbase, SZ_1K);
if(!ep7312_fio_base) { if(!ep7312_fio_base) {
printk("ioremap EDB7312 NAND flash failed\n"); printk("ioremap EDB7312 NAND flash failed\n");
kfree(ep7312_mtd); kfree(ep7312_mtd);
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Copyright (C) 2002 Marius Grger (mag@sysgo.de) * Copyright (C) 2002 Marius Grger (mag@sysgo.de)
* Copyright (c) 2001 Thomas Gleixner (gleixner@autronix.de) * Copyright (c) 2001 Thomas Gleixner (gleixner@autronix.de)
* *
* $Id: h1910.c,v 1.4 2004/10/05 13:50:20 gleixner Exp $ * $Id: h1910.c,v 1.5 2004/11/04 12:53:10 gleixner Exp $
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
...@@ -112,7 +112,7 @@ static int __init h1910_init (void) ...@@ -112,7 +112,7 @@ static int __init h1910_init (void)
if (!machine_is_h1900()) if (!machine_is_h1900())
return -ENODEV; return -ENODEV;
nandaddr = (void __iomem *)__ioremap(0x08000000, 0x1000, 0, 1); nandaddr = __ioremap(0x08000000, 0x1000, 0, 1);
if (!nandaddr) { if (!nandaddr) {
printk("Failed to ioremap nand flash.\n"); printk("Failed to ioremap nand flash.\n");
return -ENOMEM; return -ENOMEM;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* Derived from drivers/mtd/nand/edb7312.c * Derived from drivers/mtd/nand/edb7312.c
* *
* *
* $Id: ppchameleonevb.c,v 1.4 2004/10/05 13:50:20 gleixner Exp $ * $Id: ppchameleonevb.c,v 1.6 2004/11/05 16:07:16 kalev Exp $
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
...@@ -64,13 +64,14 @@ static struct mtd_info *ppchameleonevb_mtd = NULL; ...@@ -64,13 +64,14 @@ static struct mtd_info *ppchameleonevb_mtd = NULL;
/* /*
* Module stuff * Module stuff
*/ */
static int ppchameleon_fio_pbase = CFG_NAND0_PADDR; static unsigned long ppchameleon_fio_pbase = CFG_NAND0_PADDR;
static int ppchameleonevb_fio_pbase = CFG_NAND1_PADDR; static unsigned long ppchameleonevb_fio_pbase = CFG_NAND1_PADDR;
#ifdef MODULE #ifdef MODULE
MODULE_PARM(ppchameleon_fio_pbase, "i"); module_param(ppchameleon_fio_pbase, ulong, 0);
module_param(ppchameleonevb_fio_pbase, ulong, 0);
#else
__setup("ppchameleon_fio_pbase=",ppchameleon_fio_pbase); __setup("ppchameleon_fio_pbase=",ppchameleon_fio_pbase);
MODULE_PARM(ppchameleonevb_fio_pbase, "i");
__setup("ppchameleonevb_fio_pbase=",ppchameleonevb_fio_pbase); __setup("ppchameleonevb_fio_pbase=",ppchameleonevb_fio_pbase);
#endif #endif
...@@ -206,7 +207,7 @@ static int __init ppchameleonevb_init (void) ...@@ -206,7 +207,7 @@ static int __init ppchameleonevb_init (void)
} }
/* map physical address */ /* map physical address */
ppchameleon_fio_base = (void __iomem *) ioremap(ppchameleon_fio_pbase, SZ_4M); ppchameleon_fio_base = ioremap(ppchameleon_fio_pbase, SZ_4M);
if(!ppchameleon_fio_base) { if(!ppchameleon_fio_base) {
printk("ioremap PPChameleon NAND flash failed\n"); printk("ioremap PPChameleon NAND flash failed\n");
kfree(ppchameleon_mtd); kfree(ppchameleon_mtd);
...@@ -305,7 +306,7 @@ static int __init ppchameleonevb_init (void) ...@@ -305,7 +306,7 @@ static int __init ppchameleonevb_init (void)
} }
/* map physical address */ /* map physical address */
ppchameleonevb_fio_base = (void __iomem *)ioremap(ppchameleonevb_fio_pbase, SZ_4M); ppchameleonevb_fio_base = ioremap(ppchameleonevb_fio_pbase, SZ_4M);
if(!ppchameleonevb_fio_base) { if(!ppchameleonevb_fio_base) {
printk("ioremap PPChameleonEVB NAND flash failed\n"); printk("ioremap PPChameleonEVB NAND flash failed\n");
kfree(ppchameleonevb_mtd); kfree(ppchameleonevb_mtd);
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* Derived from drivers/mtd/nand/spia.c * Derived from drivers/mtd/nand/spia.c
* Copyright (C) 2000 Steven J. Hill (sjhill@realitydiluted.com) * Copyright (C) 2000 Steven J. Hill (sjhill@realitydiluted.com)
* *
* $Id: rtc_from4.c,v 1.6 2004/10/05 22:11:46 gleixner Exp $ * $Id: rtc_from4.c,v 1.7 2004/11/04 12:53:10 gleixner Exp $
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
...@@ -91,8 +91,6 @@ static struct mtd_info *rtc_from4_mtd = NULL; ...@@ -91,8 +91,6 @@ static struct mtd_info *rtc_from4_mtd = NULL;
*/ */
static void __iomem *rtc_from4_fio_base = P2SEGADDR(RTC_FROM4_FIO_BASE); static void __iomem *rtc_from4_fio_base = P2SEGADDR(RTC_FROM4_FIO_BASE);
MODULE_PARM(rtc_from4_fio_base, "i");
const static struct mtd_partition partition_info[] = { const static struct mtd_partition partition_info[] = {
{ {
.name = "Renesas flash partition 1", .name = "Renesas flash partition 1",
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* to controllines (due to change in nand.c) * to controllines (due to change in nand.c)
* page_cache added * page_cache added
* *
* $Id: spia.c,v 1.23 2004/10/05 13:50:20 gleixner Exp $ * $Id: spia.c,v 1.24 2004/11/04 12:53:10 gleixner Exp $
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as * it under the terms of the GNU General Public License version 2 as
...@@ -59,10 +59,10 @@ static int spia_fio_base = SPIA_FIO_BASE; ...@@ -59,10 +59,10 @@ static int spia_fio_base = SPIA_FIO_BASE;
static int spia_pedr = SPIA_PEDR; static int spia_pedr = SPIA_PEDR;
static int spia_peddr = SPIA_PEDDR; static int spia_peddr = SPIA_PEDDR;
MODULE_PARM(spia_io_base, "i"); module_param(spia_io_base, int, 0);
MODULE_PARM(spia_fio_base, "i"); module_param(spia_fio_base, int, 0);
MODULE_PARM(spia_pedr, "i"); module_param(spia_pedr, int, 0);
MODULE_PARM(spia_peddr, "i"); module_param(spia_peddr, int, 0);
/* /*
* Define partitions for flash device * Define partitions for flash device
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment