leds-hp6xx.c (c58310bf4933986513020fa90b4190c7492995ae) leds-hp6xx.c (3c4ded9715c05724939c9a4bd72555c2ade71d97)
1/*
2 * LED Triggers Core
3 * For the HP Jornada 620/660/680/690 handhelds
4 *
5 * Copyright 2008 Kristoffer Ericson <kristoffer.ericson@gmail.com>
6 * this driver is based on leds-spitz.c by Richard Purdie.
7 *
8 * This program is free software; you can redistribute it and/or modify

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

85static int hp6xxled_remove(struct platform_device *pdev)
86{
87 led_classdev_unregister(&hp6xx_red_led);
88 led_classdev_unregister(&hp6xx_green_led);
89
90 return 0;
91}
92
1/*
2 * LED Triggers Core
3 * For the HP Jornada 620/660/680/690 handhelds
4 *
5 * Copyright 2008 Kristoffer Ericson <kristoffer.ericson@gmail.com>
6 * this driver is based on leds-spitz.c by Richard Purdie.
7 *
8 * This program is free software; you can redistribute it and/or modify

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

85static int hp6xxled_remove(struct platform_device *pdev)
86{
87 led_classdev_unregister(&hp6xx_red_led);
88 led_classdev_unregister(&hp6xx_green_led);
89
90 return 0;
91}
92
93/* work with hotplug and coldplug */
94MODULE_ALIAS("platform:hp6xx-led");
95
93static struct platform_driver hp6xxled_driver = {
94 .probe = hp6xxled_probe,
95 .remove = hp6xxled_remove,
96#ifdef CONFIG_PM
97 .suspend = hp6xxled_suspend,
98 .resume = hp6xxled_resume,
99#endif
100 .driver = {
101 .name = "hp6xx-led",
96static struct platform_driver hp6xxled_driver = {
97 .probe = hp6xxled_probe,
98 .remove = hp6xxled_remove,
99#ifdef CONFIG_PM
100 .suspend = hp6xxled_suspend,
101 .resume = hp6xxled_resume,
102#endif
103 .driver = {
104 .name = "hp6xx-led",
105 .owner = THIS_MODULE,
102 },
103};
104
105static int __init hp6xxled_init(void)
106{
107 return platform_driver_register(&hp6xxled_driver);
108}
109
110static void __exit hp6xxled_exit(void)
111{
112 platform_driver_unregister(&hp6xxled_driver);
113}
114
115module_init(hp6xxled_init);
116module_exit(hp6xxled_exit);
117
118MODULE_AUTHOR("Kristoffer Ericson <kristoffer.ericson@gmail.com>");
119MODULE_DESCRIPTION("HP Jornada 6xx LED driver");
120MODULE_LICENSE("GPL");
106 },
107};
108
109static int __init hp6xxled_init(void)
110{
111 return platform_driver_register(&hp6xxled_driver);
112}
113
114static void __exit hp6xxled_exit(void)
115{
116 platform_driver_unregister(&hp6xxled_driver);
117}
118
119module_init(hp6xxled_init);
120module_exit(hp6xxled_exit);
121
122MODULE_AUTHOR("Kristoffer Ericson <kristoffer.ericson@gmail.com>");
123MODULE_DESCRIPTION("HP Jornada 6xx LED driver");
124MODULE_LICENSE("GPL");