#include <linux/clk.h>
#include <linux/ioport.h>
#include <linux/spinlock.h>
+#include <linux/module.h>
#include <asm/io.h>
#include <asm/mach-types.h>
spin_unlock(&gpmc_mem_lock);
return r;
}
+EXPORT_SYMBOL(gpmc_cs_request);
void gpmc_cs_free(int cs)
{
gpmc_cs_set_reserved(cs, 0);
spin_unlock(&gpmc_mem_lock);
}
+EXPORT_SYMBOL(gpmc_cs_free);
void __init gpmc_mem_init(void)
{
#include <asm/arch/board.h>
+#define DRIVER_NAME "omap2-onenand"
+
#define ONENAND_IO_SIZE SZ_128K
#define ONENAND_BUFRAM_SIZE (1024 * 5)
.remove = omap2_onenand_remove,
.shutdown = omap2_onenand_shutdown,
.driver = {
- .name = "omap2-onenand",
+ .name = DRIVER_NAME,
.owner = THIS_MODULE,
},
};
-MODULE_ALIAS(DRIVER_NAME);
-
static int __init omap2_onenand_init(void)
{
printk(KERN_INFO "OMAP2 OneNAND driver initializing\n");
module_init(omap2_onenand_init);
module_exit(omap2_onenand_exit);
+MODULE_ALIAS(DRIVER_NAME);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Jarkko Lavinen <jarkko.lavinen@nokia.com>");
MODULE_DESCRIPTION("Glue layer for OneNAND flash on OMAP2");