sa1100-flash.c (da733563be5a9da26fe81d9f007262d00b846e22) | sa1100-flash.c (f99640dee209df4730f35a28b02693affd571ad5) |
---|---|
1/* 2 * Flash memory access on SA11x0 based devices 3 * 4 * (C) 2000 Nicolas Pitre <nico@fluxnic.net> 5 */ 6#include <linux/module.h> 7#include <linux/types.h> 8#include <linux/ioport.h> --- 380 unchanged lines hidden (view full) --- 389 .remove = __exit_p(sa1100_mtd_remove), 390 .shutdown = sa1100_mtd_shutdown, 391 .driver = { 392 .name = "sa1100-mtd", 393 .owner = THIS_MODULE, 394 }, 395}; 396 | 1/* 2 * Flash memory access on SA11x0 based devices 3 * 4 * (C) 2000 Nicolas Pitre <nico@fluxnic.net> 5 */ 6#include <linux/module.h> 7#include <linux/types.h> 8#include <linux/ioport.h> --- 380 unchanged lines hidden (view full) --- 389 .remove = __exit_p(sa1100_mtd_remove), 390 .shutdown = sa1100_mtd_shutdown, 391 .driver = { 392 .name = "sa1100-mtd", 393 .owner = THIS_MODULE, 394 }, 395}; 396 |
397static int __init sa1100_mtd_init(void) 398{ 399 return platform_driver_register(&sa1100_mtd_driver); 400} | 397module_platform_driver(sa1100_mtd_driver); |
401 | 398 |
402static void __exit sa1100_mtd_exit(void) 403{ 404 platform_driver_unregister(&sa1100_mtd_driver); 405} 406 407module_init(sa1100_mtd_init); 408module_exit(sa1100_mtd_exit); 409 | |
410MODULE_AUTHOR("Nicolas Pitre"); 411MODULE_DESCRIPTION("SA1100 CFI map driver"); 412MODULE_LICENSE("GPL"); 413MODULE_ALIAS("platform:sa1100-mtd"); | 399MODULE_AUTHOR("Nicolas Pitre"); 400MODULE_DESCRIPTION("SA1100 CFI map driver"); 401MODULE_LICENSE("GPL"); 402MODULE_ALIAS("platform:sa1100-mtd"); |