leds-max8997.c (681e4a5e13c1c8315694eb4f44e0cdd84c9082d2) | leds-max8997.c (7fafefb86e4d48464b79c125b37b9d472ba253ab) |
---|---|
1/* 2 * leds-max8997.c - LED class driver for MAX8997 LEDs. 3 * 4 * Copyright (C) 2011 Samsung Electronics 5 * Donggeun Kim <dg77.kim@samsung.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 340 unchanged lines hidden (view full) --- 349 .driver = { 350 .name = "max8997-led", 351 .owner = THIS_MODULE, 352 }, 353 .probe = max8997_led_probe, 354 .remove = __devexit_p(max8997_led_remove), 355}; 356 | 1/* 2 * leds-max8997.c - LED class driver for MAX8997 LEDs. 3 * 4 * Copyright (C) 2011 Samsung Electronics 5 * Donggeun Kim <dg77.kim@samsung.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 340 unchanged lines hidden (view full) --- 349 .driver = { 350 .name = "max8997-led", 351 .owner = THIS_MODULE, 352 }, 353 .probe = max8997_led_probe, 354 .remove = __devexit_p(max8997_led_remove), 355}; 356 |
357static int __init max8997_led_init(void) 358{ 359 return platform_driver_register(&max8997_led_driver); 360} 361module_init(max8997_led_init); | 357module_platform_driver(max8997_led_driver); |
362 | 358 |
363static void __exit max8997_led_exit(void) 364{ 365 platform_driver_unregister(&max8997_led_driver); 366} 367module_exit(max8997_led_exit); 368 | |
369MODULE_AUTHOR("Donggeun Kim <dg77.kim@samsung.com>"); 370MODULE_DESCRIPTION("MAX8997 LED driver"); 371MODULE_LICENSE("GPL"); 372MODULE_ALIAS("platform:max8997-led"); | 359MODULE_AUTHOR("Donggeun Kim <dg77.kim@samsung.com>"); 360MODULE_DESCRIPTION("MAX8997 LED driver"); 361MODULE_LICENSE("GPL"); 362MODULE_ALIAS("platform:max8997-led"); |