regulator: kryo: fix return value for regulator_disable
Remove uninitialized variable and return value 0 from regulator_disable(). Change-Id: I920819fbce14d1c6d5f7afac577002aa25b66a05 Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
This commit is contained in:
parent
c3b8576cf9
commit
cce6e2b4b7
1 changed files with 2 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License version 2 and
|
* it under the terms of the GNU General Public License version 2 and
|
||||||
|
@ -311,7 +311,6 @@ done:
|
||||||
static int kryo_regulator_disable(struct regulator_dev *rdev)
|
static int kryo_regulator_disable(struct regulator_dev *rdev)
|
||||||
{
|
{
|
||||||
struct kryo_regulator *kvreg = rdev_get_drvdata(rdev);
|
struct kryo_regulator *kvreg = rdev_get_drvdata(rdev);
|
||||||
int rc;
|
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
if (kvreg->vreg_en == false)
|
if (kvreg->vreg_en == false)
|
||||||
|
@ -322,7 +321,7 @@ static int kryo_regulator_disable(struct regulator_dev *rdev)
|
||||||
kvreg_debug(kvreg, "disabled\n");
|
kvreg_debug(kvreg, "disabled\n");
|
||||||
spin_unlock_irqrestore(&kvreg->slock, flags);
|
spin_unlock_irqrestore(&kvreg->slock, flags);
|
||||||
|
|
||||||
return rc;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int kryo_regulator_is_enabled(struct regulator_dev *rdev)
|
static int kryo_regulator_is_enabled(struct regulator_dev *rdev)
|
||||||
|
|
Loading…
Add table
Reference in a new issue