summaryrefslogtreecommitdiff
path: root/drivers/acpi/pmic
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2016-06-22 17:55:40 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-06-27 15:24:09 +0200
commit730de199b389e83da8d3935f82e78e30b9876b56 (patch)
tree56d21c480a1b47f33e6ba055cdce650129e59c71 /drivers/acpi/pmic
parent0afa877a5650dd046500b2f8ef08c90862e7ab6b (diff)
ACPI / PMIC: intel: initialize result to 0
Fixes compiler warning. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/pmic')
-rw-r--r--drivers/acpi/pmic/intel_pmic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/pmic/intel_pmic.c b/drivers/acpi/pmic/intel_pmic.c
index e107e277e8b3..6585affc3e26 100644
--- a/drivers/acpi/pmic/intel_pmic.c
+++ b/drivers/acpi/pmic/intel_pmic.c
@@ -216,7 +216,7 @@ static acpi_status intel_pmic_regs_handler(u32 function,
void *handler_context, void *region_context)
{
struct intel_pmic_opregion *opregion = region_context;
- int result;
+ int result = 0;
switch (address) {
case 0: