On Wed, Dec 20, 2017 at 02:17:41PM +0530, Arvind Yadav wrote:Thanks for reviewing, As per your comment, I will send updated
gpio_led are not supposed to change at runtime.Marking the structs as const is fine, but marking them __initconst is
struct gpio_led_platform_data working with const gpio_led
provided by <linux/leds.h>. So mark the non-const structs
as const.
not. The GPIO LED driver can be built as a module, which means it can
be loaded after the init sections have gone away. If that happens,
then we de-reference the pointer to memory that has been freed.
Please re-spin your patch set without the __initconst marking.