]> git.karo-electronics.de Git - linux-beck.git/commit
mfd: rc5t583: Fix warning messages
authorVenu Byravarasu <vbyravarasu@nvidia.com>
Thu, 23 Aug 2012 06:51:16 +0000 (12:21 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 23 Sep 2012 18:51:33 +0000 (20:51 +0200)
commit0dd96360e21ec7963aeba253261db87a32e728c6
tree8bad55c02c654992390d30dbaf0f69be1a438549
parenta361cd9f2e9f2110e03ebeb6c4fb000a9a1adf2d
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>
drivers/mfd/rc5t583-irq.c
drivers/mfd/rc5t583.c