pxa27x_keypad.c (f838bad1b3be8ca0c785ee0e0c570dfda74cf377) pxa27x_keypad.c (d7b5247bbcfba2bc96d4b3dec9086a4f1a31363b)
1/*
2 * linux/drivers/input/keyboard/pxa27x_keypad.c
3 *
4 * Driver for the pxa27x matrix keyboard controller.
5 *
6 * Created: Feb 22, 2007
7 * Author: Rodolfo Giometti <giometti@linux.it>
8 *

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

540 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
541 release_mem_region(res->start, res_size(res));
542
543 platform_set_drvdata(pdev, NULL);
544 kfree(keypad);
545 return 0;
546}
547
1/*
2 * linux/drivers/input/keyboard/pxa27x_keypad.c
3 *
4 * Driver for the pxa27x matrix keyboard controller.
5 *
6 * Created: Feb 22, 2007
7 * Author: Rodolfo Giometti <giometti@linux.it>
8 *

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

540 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
541 release_mem_region(res->start, res_size(res));
542
543 platform_set_drvdata(pdev, NULL);
544 kfree(keypad);
545 return 0;
546}
547
548/* work with hotplug and coldplug */
549MODULE_ALIAS("platform:pxa27x-keypad");
550
548static struct platform_driver pxa27x_keypad_driver = {
549 .probe = pxa27x_keypad_probe,
550 .remove = __devexit_p(pxa27x_keypad_remove),
551 .suspend = pxa27x_keypad_suspend,
552 .resume = pxa27x_keypad_resume,
553 .driver = {
554 .name = "pxa27x-keypad",
551static struct platform_driver pxa27x_keypad_driver = {
552 .probe = pxa27x_keypad_probe,
553 .remove = __devexit_p(pxa27x_keypad_remove),
554 .suspend = pxa27x_keypad_suspend,
555 .resume = pxa27x_keypad_resume,
556 .driver = {
557 .name = "pxa27x-keypad",
558 .owner = THIS_MODULE,
555 },
556};
557
558static int __init pxa27x_keypad_init(void)
559{
560 return platform_driver_register(&pxa27x_keypad_driver);
561}
562
563static void __exit pxa27x_keypad_exit(void)
564{
565 platform_driver_unregister(&pxa27x_keypad_driver);
566}
567
568module_init(pxa27x_keypad_init);
569module_exit(pxa27x_keypad_exit);
570
571MODULE_DESCRIPTION("PXA27x Keypad Controller Driver");
572MODULE_LICENSE("GPL");
559 },
560};
561
562static int __init pxa27x_keypad_init(void)
563{
564 return platform_driver_register(&pxa27x_keypad_driver);
565}
566
567static void __exit pxa27x_keypad_exit(void)
568{
569 platform_driver_unregister(&pxa27x_keypad_driver);
570}
571
572module_init(pxa27x_keypad_init);
573module_exit(pxa27x_keypad_exit);
574
575MODULE_DESCRIPTION("PXA27x Keypad Controller Driver");
576MODULE_LICENSE("GPL");