commit | f9490c672dca8714260ec070a6bc8163473343f7 | [log] [tgz] |
---|---|---|
author | Amy Maloche <amaloche@codeaurora.org> | Tue Nov 27 19:26:04 2012 -0800 |
committer | Amy Maloche <amaloche@codeaurora.org> | Fri Nov 30 11:41:37 2012 -0800 |
tree | c44a40795da0761877cb0d25c2ca905dc2ffd8f6 | |
parent | b6f4437ad00ae7d2516fe2c94c9e64c5a3fd2cb7 [diff] |
leds: qpnp-leds: correct bugs in driver probe There are 4 errors during the probe of leds-qpnp: 1) dev_kzalloc should only be called when num_leds > 0 2) led->num_leds is only set for the first child led node 3) return path does not unregister leds in all cases 4) cleanup for more than 1 led in probe fails These must be corrected. CRs-fixed: 422575 Change-Id: Ie0c4f3d8ee12dfabe48c1f78162941aedb5dbb52 Signed-off-by: Amy Maloche <amaloche@codeaurora.org>