We all inherited the same error from the original NAND board driver which
got copied and changed. Fix them all at once...
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
/*
* Main initialization routine
*/
/*
* Main initialization routine
*/
-int __init au1xxx_nand_init(void)
+static int __init au1xxx_nand_init(void)
{
struct nand_chip *this;
u16 boot_swapboot = 0; /* default value */
{
struct nand_chip *this;
u16 boot_swapboot = 0; /* default value */
static void __exit au1550_cleanup(void)
{
struct nand_chip *this = (struct nand_chip *)&au1550_mtd[1];
static void __exit au1550_cleanup(void)
{
struct nand_chip *this = (struct nand_chip *)&au1550_mtd[1];
}
module_exit(au1550_cleanup);
}
module_exit(au1550_cleanup);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Embedded Edge, LLC");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Embedded Edge, LLC");
/*
* Main initialization routine
*/
/*
* Main initialization routine
*/
-int __init autcpu12_init(void)
+static int __init autcpu12_init(void)
{
struct nand_chip *this;
int err = 0;
{
struct nand_chip *this;
int err = 0;
static void __exit autcpu12_cleanup(void)
{
/* Release resources, unregister device */
static void __exit autcpu12_cleanup(void)
{
/* Release resources, unregister device */
}
module_exit(autcpu12_cleanup);
}
module_exit(autcpu12_cleanup);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Thomas Gleixner <tglx@linutronix.de>");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Thomas Gleixner <tglx@linutronix.de>");
-int __init cs553x_init(void)
+static int __init cs553x_init(void)
{
int err = -ENXIO;
int i;
{
int err = -ENXIO;
int i;
/*
* Main initialization routine
*/
/*
* Main initialization routine
*/
-int __init rtc_from4_init(void)
+static int __init rtc_from4_init(void)
{
struct nand_chip *this;
unsigned short bcr1, bcr2, wcr2;
{
struct nand_chip *this;
unsigned short bcr1, bcr2, wcr2;
static void __exit rtc_from4_cleanup(void)
{
/* Release resource, unregister partitions */
static void __exit rtc_from4_cleanup(void)
{
/* Release resource, unregister partitions */
}
module_exit(rtc_from4_cleanup);
}
module_exit(rtc_from4_cleanup);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("d.marlin <dmarlin@redhat.com");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("d.marlin <dmarlin@redhat.com");
/*
* Main initialization routine
*/
/*
* Main initialization routine
*/
-int __init sharpsl_nand_init(void)
+static int __init sharpsl_nand_init(void)
{
struct nand_chip *this;
struct mtd_partition *sharpsl_partition_info;
{
struct nand_chip *this;
struct mtd_partition *sharpsl_partition_info;
static void __exit sharpsl_nand_cleanup(void)
{
struct nand_chip *this = (struct nand_chip *)&sharpsl_mtd[1];
static void __exit sharpsl_nand_cleanup(void)
{
struct nand_chip *this = (struct nand_chip *)&sharpsl_mtd[1];
}
module_exit(sharpsl_nand_cleanup);
}
module_exit(sharpsl_nand_cleanup);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Richard Purdie <rpurdie@rpsys.net>");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Richard Purdie <rpurdie@rpsys.net>");
/*
* Main initialization routine
*/
/*
* Main initialization routine
*/
-int __init spia_init(void)
+static int __init spia_init(void)
{
struct nand_chip *this;
{
struct nand_chip *this;
static void __exit spia_cleanup(void)
{
/* Release resources, unregister device */
static void __exit spia_cleanup(void)
{
/* Release resources, unregister device */
}
module_exit(spia_cleanup);
}
module_exit(spia_cleanup);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Steven J. Hill <sjhill@realitydiluted.com");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Steven J. Hill <sjhill@realitydiluted.com");
/*
* Main initialization routine
*/
/*
* Main initialization routine
*/
-int __init toto_init(void)
+static int __init toto_init(void)
{
struct nand_chip *this;
int err = 0;
{
struct nand_chip *this;
int err = 0;