gpio_keys.c (1164ec1ae43770db6ea5450c6cac0761b11d6d1d) gpio_keys.c (d7b5247bbcfba2bc96d4b3dec9086a4f1a31363b)
1/*
2 * Driver for keys on GPIO lines capable of generating interrupts.
3 *
4 * Copyright 2005 Phil Blundell
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 200 unchanged lines hidden (view full) ---

209
210struct platform_driver gpio_keys_device_driver = {
211 .probe = gpio_keys_probe,
212 .remove = __devexit_p(gpio_keys_remove),
213 .suspend = gpio_keys_suspend,
214 .resume = gpio_keys_resume,
215 .driver = {
216 .name = "gpio-keys",
1/*
2 * Driver for keys on GPIO lines capable of generating interrupts.
3 *
4 * Copyright 2005 Phil Blundell
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 200 unchanged lines hidden (view full) ---

209
210struct platform_driver gpio_keys_device_driver = {
211 .probe = gpio_keys_probe,
212 .remove = __devexit_p(gpio_keys_remove),
213 .suspend = gpio_keys_suspend,
214 .resume = gpio_keys_resume,
215 .driver = {
216 .name = "gpio-keys",
217 .owner = THIS_MODULE,
217 }
218};
219
220static int __init gpio_keys_init(void)
221{
222 return platform_driver_register(&gpio_keys_device_driver);
223}
224
225static void __exit gpio_keys_exit(void)
226{
227 platform_driver_unregister(&gpio_keys_device_driver);
228}
229
230module_init(gpio_keys_init);
231module_exit(gpio_keys_exit);
232
233MODULE_LICENSE("GPL");
234MODULE_AUTHOR("Phil Blundell <pb@handhelds.org>");
235MODULE_DESCRIPTION("Keyboard driver for CPU GPIOs");
218 }
219};
220
221static int __init gpio_keys_init(void)
222{
223 return platform_driver_register(&gpio_keys_device_driver);
224}
225
226static void __exit gpio_keys_exit(void)
227{
228 platform_driver_unregister(&gpio_keys_device_driver);
229}
230
231module_init(gpio_keys_init);
232module_exit(gpio_keys_exit);
233
234MODULE_LICENSE("GPL");
235MODULE_AUTHOR("Phil Blundell <pb@handhelds.org>");
236MODULE_DESCRIPTION("Keyboard driver for CPU GPIOs");
237MODULE_ALIAS("platform:gpio-keys");