mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 15:10:38 +00:00
mfd: tps65910: Move an assignment in tps65910_sleepinit()
Move the assignment for the local variable "dev" so that its setting will be performed after a configuration check by this function. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
da257efa87
commit
71bc4f1de3
@ -315,11 +315,11 @@ static int tps65910_sleepinit(struct tps65910 *tps65910,
|
||||
struct device *dev;
|
||||
int ret;
|
||||
|
||||
dev = tps65910->dev;
|
||||
|
||||
if (!pmic_pdata->en_dev_slp)
|
||||
return 0;
|
||||
|
||||
dev = tps65910->dev;
|
||||
|
||||
/* enabling SLEEP device state */
|
||||
ret = tps65910_reg_set_bits(tps65910, TPS65910_DEVCTRL,
|
||||
DEVCTRL_DEV_SLP_MASK);
|
||||
|
Loading…
x
Reference in New Issue
Block a user