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>
This commit is contained in:
Keerthy 2016-11-10 10:39:17 +05:30 committed by Lee Jones
parent fb36f77efe
commit 445c93093d
1 changed files with 0 additions and 3 deletions

View File

@ -431,9 +431,6 @@ static void palmas_power_off(void)
unsigned int addr; unsigned int addr;
int ret, slave; int ret, slave;
if (!palmas_dev)
return;
slave = PALMAS_BASE_TO_SLAVE(PALMAS_PMU_CONTROL_BASE); slave = PALMAS_BASE_TO_SLAVE(PALMAS_PMU_CONTROL_BASE);
addr = PALMAS_BASE_TO_REG(PALMAS_PMU_CONTROL_BASE, PALMAS_DEV_CTRL); addr = PALMAS_BASE_TO_REG(PALMAS_PMU_CONTROL_BASE, PALMAS_DEV_CTRL);