summaryrefslogtreecommitdiff
path: root/drivers/leds
diff options
context:
space:
mode:
authorRohit Vaswani <rvaswani@codeaurora.org>2016-03-04 18:07:09 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:57:40 -0700
commit91a1dd684ff2a63e9afcea445f04d80fc62b6430 (patch)
treebd33ef55c5eacd508c6f801335091f75bbb9e102 /drivers/leds
parentf52a07bd52333fd74bd0952649c0e522a6d4eecf (diff)
drivers: iommu, leds, input, clk, devfreq: fix warnings
Fix some variable initializations which would otherwise cause forbidden warnings. Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org> Signed-off-by: David Keitel <dkeitel@codeaurora.org>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-qpnp-flash.c1
-rw-r--r--drivers/leds/leds-qpnp-wled.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/leds/leds-qpnp-flash.c b/drivers/leds/leds-qpnp-flash.c
index f0ebe694a9ec..3eb794b30b4b 100644
--- a/drivers/leds/leds-qpnp-flash.c
+++ b/drivers/leds/leds-qpnp-flash.c
@@ -118,7 +118,6 @@
#define FLASH_LED_MODULE_CTRL_DEFAULT 0x60
#define FLASH_LED_CURRENT_READING_DELAY_MIN 5000
#define FLASH_LED_CURRENT_READING_DELAY_MAX 5001
-#define PMI8996_SUBTYPE 19
#define FLASH_LED_OPEN_FAULT_DETECTED 0xC
#define FLASH_UNLOCK_SECURE 0xA5
diff --git a/drivers/leds/leds-qpnp-wled.c b/drivers/leds/leds-qpnp-wled.c
index a7a25f54f992..ffaa349d56f5 100644
--- a/drivers/leds/leds-qpnp-wled.c
+++ b/drivers/leds/leds-qpnp-wled.c
@@ -1621,7 +1621,7 @@ static int qpnp_wled_parse_dt(struct qpnp_wled *wled)
static int qpnp_wled_probe(struct platform_device *pdev)
{
struct qpnp_wled *wled;
- int rc, i;
+ int rc = 0, i;
const __be32 *prop;
wled = devm_kzalloc(&pdev->dev, sizeof(*wled), GFP_KERNEL);