#include #include #include #include #include #include "platform.h" static const struct of_device_id lork_ids[] = { { .compatible = "gpio-extern" }, {}, }; struct platform_driver lork_driver = { .probe = lork_probe, .remove = lork_remove, .driver = { .name = "gpio-extern", .owner = THIS_MODULE, .of_match_table = of_match_ptr(lork_ids), } }; static int mod_init(void) { printk("%s()\n", __PRETTY_FUNCTION__); return platform_driver_register(&lork_driver); } static void mod_exit(void) { printk("%s()\n", __PRETTY_FUNCTION__); platform_driver_unregister(&lork_driver); } module_init(mod_init); module_exit(mod_exit); MODULE_LICENSE("Dual MIT/GPL");