Tag: 48a7032ba044103cf89af680d3e3bb9bf0ba9072

leds: s3c24xx: Use devm_led_classdev_register

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> Switch to resource-managed function devm_led_classdev_register instead of led_classdev_register and remove unneeded led_classdev_unregister. Also, remove unnecessary function pdev_to_gpio, platform_set_drvdata in the probe function and the remove function, s3c24xx_led_remove as it is now has nothing to do. The Coccinelle semantic patch used to make this change is as follows: // @platform@ identifier …

Continue reading