From patchwork Tue Jan 16 12:02:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10166609 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2F7F1601E7 for ; Tue, 16 Jan 2018 12:02:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E29728179 for ; Tue, 16 Jan 2018 12:02:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 12BF82851A; Tue, 16 Jan 2018 12:02:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC38B28179 for ; Tue, 16 Jan 2018 12:02:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751781AbeAPMCe (ORCPT ); Tue, 16 Jan 2018 07:02:34 -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 Received: from [192.168.1.3] ([92.228.15.72]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LuLxD-1f0kro1LVP-011kVq; Tue, 16 Jan 2018 13:02:31 +0100 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-Language: en-GB 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-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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);