summaryrefslogtreecommitdiff
path: root/drivers/mfd/rc5t583.c
diff options
context:
space:
mode:
authorVenu Byravarasu <vbyravarasu@nvidia.com>2012-08-23 12:21:16 +0530
committerSamuel Ortiz <sameo@linux.intel.com>2012-09-23 20:51:33 +0200
commit0dd96360e21ec7963aeba253261db87a32e728c6 (patch)
tree8bad55c02c654992390d30dbaf0f69be1a438549 /drivers/mfd/rc5t583.c
parenta361cd9f2e9f2110e03ebeb6c4fb000a9a1adf2d (diff)
mfd: rc5t583: Fix warning messages
Two variables named master_int and sleepseq_val, were just declared without initialization. Pointers to these variables were passed to mfd read function. After that these variables were used for some of the logical operations. Though logically there is nothing wrong, compiler is complaining that the variables may be used uninitialized. Hence fixing these warning messages by initializing them. Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/rc5t583.c')
-rw-r--r--drivers/mfd/rc5t583.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/rc5t583.c b/drivers/mfd/rc5t583.c
index 3a8fa88567b1..d6b50728ea32 100644
--- a/drivers/mfd/rc5t583.c
+++ b/drivers/mfd/rc5t583.c
@@ -85,7 +85,7 @@ static int __rc5t583_set_ext_pwrreq1_control(struct device *dev,
int id, int ext_pwr, int slots)
{
int ret;
- uint8_t sleepseq_val;
+ uint8_t sleepseq_val = 0;
unsigned int en_bit;
unsigned int slot_bit;