leds: aw2013_led: fix issue led->vdd/vcc is NULL
kernel panic from as the led->vdd passed from the aw2013_power_on is NULL hence panic. vdd/vcc instance are only assigned to red led, need to use the led instance in pdata to make sure the vdd/vcc instances are valid. This patch is propagated from msm-3.10 kernel. (commit: I908feffa52194b5f4502200bf13e911e0ddbb933) leds: aw2013_led: fix issue led->vdd/vcc is NULL Change-Id: I908feffa52194b5f4502200bf13e911e0ddbb933 Signed-off-by:Mao Li <maol@codeaurora.org> Signed-off-by:
Shantanu Jain <shjain@codeaurora.org>
Loading
Please register or sign in to comment