summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/palmas.c
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2016-11-10 10:39:17 +0530
committerLee Jones <lee.jones@linaro.org>2016-11-29 08:21:38 +0000
commit445c93093d7f28a0a07fd10f0d7a8aada4e1932e (patch)
treeb5c452e25a75d4e58ffced18f9b0287747e6e405 /drivers/mfd/palmas.c
parentfb36f77efec7c4371a8be0c73424fa2bf841e3b2 (diff)
downloadop-kernel-dev-445c93093d7f28a0a07fd10f0d7a8aada4e1932e.zip
op-kernel-dev-445c93093d7f28a0a07fd10f0d7a8aada4e1932e.tar.gz
mfd: palmas: Remove redundant check in palmas_power_off
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>
Diffstat (limited to 'drivers/mfd/palmas.c')
-rw-r--r--drivers/mfd/palmas.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/mfd/palmas.c b/drivers/mfd/palmas.c
index 8f8bacb..ee9e9ea 100644
--- 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);
OpenPOWER on IntegriCloud