projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb36f77
)
mfd: palmas: Remove redundant check in palmas_power_off
author
Keerthy
<j-keerthy@ti.com>
Thu, 10 Nov 2016 05:09:17 +0000
(10:39 +0530)
committer
Lee Jones
<lee.jones@linaro.org>
Tue, 29 Nov 2016 08:21:38 +0000
(08:21 +0000)
palmas_dev and palmas_power_off are always assigned together.
So the check for palmas_dev inside palmas_power_off function
is redundant. Removing the same.
Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/palmas.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/palmas.c
b/drivers/mfd/palmas.c
index 8f8bacb67a15a4608de39efa80f30a0f7a550d02..ee9e9ea104447a47c7fd222a61e9f78d098bc121 100644
(file)
--- a/
drivers/mfd/palmas.c
+++ b/
drivers/mfd/palmas.c
@@
-431,9
+431,6
@@
static void palmas_power_off(void)
unsigned int addr;
int ret, slave;
- if (!palmas_dev)
- return;
-
slave = PALMAS_BASE_TO_SLAVE(PALMAS_PMU_CONTROL_BASE);
addr = PALMAS_BASE_TO_REG(PALMAS_PMU_CONTROL_BASE, PALMAS_DEV_CTRL);