Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752003AbeAPMCf (ORCPT + 1 other); Tue, 16 Jan 2018 07:02:35 -0500 Received: from mout.web.de ([212.227.17.12]:60693 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751512AbeAPMCd (ORCPT ); Tue, 16 Jan 2018 07:02:33 -0500 Subject: [PATCH 4/4] mfd/tps65910: Move an assignment in tps65910_sleepinit() From: SF Markus Elfring To: linux-omap@vger.kernel.org, Lee Jones , Tony Lindgren Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: Date: Tue, 16 Jan 2018 13:02:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:GnTR7MLRIzYbN+lC+HtQD2qWIQaotArwad7h1pLH/icTvri65GD 3VspyzZUMP7YSor4ZGCoB5Se+K4Ig23Dx+STTmZzHLGzOg68G9Qrwx/dHYzKJTndDbtmK3r XsWTYfZlXd9GA7BzplzMFSk9lnTwkz1f5M7xiqC/BSINqQDJJfwzwZby03rgjU7YdJbmfQP lLHBBtWxufkjN9uJMsjGg== X-UI-Out-Filterresults: notjunk:1;V01:K0:S1CFB5tANJg=:OXXRIUdPJXwt8H937KxCxi n8aTU4GTh1A2Lmy93Ixroz0SUQzS9YEo6O1TN0d8hgQq14o4AJrxLzmzh9Mvp44Xm/aGskaXZ 6cArCZU1Jh8WcWHntlM8iNwgMfNw23qlkg7pmmr03hLr8ZEg7CFYSmxlxG3zEfTDLBN91hHFB GlRvQm3yv4IUkWA4iLTCCHb5z0P3kwmpNaFzEsCXIATeOfob37x1CexlcfOYfQr36mWfEvFt/ Ep5LzaAI8vuCHbAWgk8Fql+1X8GPMx2lpNoczjNTLlh+otIjbKeW3mOOalb8RNLj3xcK6YHbk KcLbbQZiGlQuvlQYpsByXka9/GKXXcQf3dPYN0MmIuPwLpHA/FRNYnCKTBVvJ08sWEPF6oitt eSzGxn/Nk4JopOGyWPwBiSH2t9mp8GxRwl0rIUzO8Otq1/8OWfiJdLbneQBpWY10+tG/x/wyl w+ODO2yFTZgCwmgTzaLnexHkl8sbB2onHTROj25eNs88Jx6dmesLOhV7L0WId/VheIQCgcEaJ r2HQAlt0QZdgne+Cubk58sfGDRxdy+ZfXFqstccZ8Rq4hAZ4Gc12C9RnwnjceigIZhpa6h1Sr uiegYKUSzOpzigeQMcO/g3CmHNskHuexjfdwZZlo5t6YrrJfUMaM7c8xesQaiw3BIUHEHpRBu /qlMUEIt62C4noEi+qJMlvr2uJg4LkABUS0FKP7PEaPygKlQ6kCtrlM307xYbf0lVd6rbwD7f BwpNo+pc8OIuORX/vZwRT8DSJUCKiGSf9Mu0C4lee4zRvPT2GGSfWS91FjA+GjyHXbJ1UgczM dXHKU2eF/INTP+JRkw+pvkW8SLhDI1/XSmdSQm/pyEHngUKLsI= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Tue, 16 Jan 2018 12:22:28 +0100 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 --- drivers/mfd/tps65910.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c index 7e7d3d1642c6..bf16cbe6fd88 100644 --- a/drivers/mfd/tps65910.c +++ b/drivers/mfd/tps65910.c @@ -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); -- 2.15.1