From patchwork Wed Apr 4 10:27:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 132807 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp4877387ljb; Wed, 4 Apr 2018 03:27:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+gZwn0Hsezm38ooxqu2LtJcPk/uajm4T/pI9wWH1HKaw2bgovwwOyGfRM3u2bsxxxas6+z X-Received: by 10.101.75.81 with SMTP id k17mr11844812pgt.335.1522837666192; Wed, 04 Apr 2018 03:27:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522837666; cv=none; d=google.com; s=arc-20160816; b=bXGF2N2U84f7tnrCtGzDa+ujXQrQF6a3kqMNayV/NSBeehYM4h0Jkf4rPv5zMscwSA RHNi/M4/hJDgUJye5etW73LOV96qvcVU1171KpaxwLRgMNGDo9yhPnpXZuGbr34UIx80 RixW8dlmdJOyfrE5xsnzAwDOmMtW+xNAKDe9zvgwjpnqlkkSUkwPxY0VnvGnQ8qEdAHC SKd844x1aBs97+yI3reB6CqZmMSn1lobailQ0uteyNvuab/pgXOg76uqbT5DhG61kR1H gcuDcqp3kQz4QQLDOR1G2+ubd1pVyyJZbIfmW9GkYHDRfMzWKLzrt/JDWiLX3iQ6kZRx RCdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=gEfMr/YEv7N71DCigSRUSR6zpqtnEsXZ26Z4uB+vgz4=; b=kEsiXrpe7CJVB+9U2TuiQyX0Qa5HZuKP1tsMLQgcZEBxYi2AlZyvA5Z6Xc4bai+QJb cpx8BPyTupTMmKPfOPHM5z9whIUhBBYVURFGbRNdd4GOcWxfl0ZuknqIKqyhE8XixpMd 35VaQsp1VhWGwu9MZly54DinVT7+tmGjFwDcMmipZegXzKeiNhYWm6MPrup2IY7HJdNu tqFIp965SriTeF6PCdMx49R9x5eEuY7mXfqcVnwl2FbMevRj6iOEV/4vU7nKgzTV4TiZ dHg9TfMpQzzTu39ivL8iemCEe6bJr7BtzcX+mbHG0fGNvRLsmU21j6/dG5o9Ny/Vae04 a+Yg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q14si3556569pgr.311.2018.04.04.03.27.45; Wed, 04 Apr 2018 03:27:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751461AbeDDK1n (ORCPT + 29 others); Wed, 4 Apr 2018 06:27:43 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:52323 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751038AbeDDK1l (ORCPT ); Wed, 4 Apr 2018 06:27:41 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0MJl3M-1f2Zhz2JiW-001709; Wed, 04 Apr 2018 12:27:35 +0200 From: Arnd Bergmann To: Kishon Vijay Abraham I , Arnd Bergmann , Rob Herring , Tony Lindgren , Sebastian Reichel Cc: linux-kernel@vger.kernel.org Subject: [PATCH] phy: mapphone-mdm6600: add gpiolib dependency Date: Wed, 4 Apr 2018 12:27:19 +0200 Message-Id: <20180404102733.3747591-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:tbE++lY1GoQkCM4Ef0VJEEPLFUXeGPSv14zPwLsxVZA+7OyCp3S gis4oJ+VBTm61nkYvV/rCl/K6IUaFqEGCYKGElzEAPyfZ1aASpGeysHp3QdVBGhHB5a6pp9 jA/0sWd1gRqq7PezavzXRvD+eTi5/IN1S38Orwp7w8M7hY7K5gavX+qCVtXo9r4U+T/cxM/ XMlAI2CNTklQncs/YzFig== X-UI-Out-Filterresults: notjunk:1; V01:K0:PovKO4cA8iU=:0k7V7TsJZpuDisrDKvuD2V /nYrTo6RFfprn1UquEib176jQ34LoORuheYbaib8dUvaED+yXSW9eT4OLw0fOVhaI+flXA3qF cVJw8b0HqlrQFFKcVLyUrQDdU0KACgtGsend8K9JzVPdZ7yhxXGVxHmdx9+uumPGSiDbHuDZx CuJNS/r2PvBfNt1O+l7weLbtQAN1kP89zTCmyjDGKidP+x2d1seNMI4gzsc1Bv/YtRiBE51xV gV72ikwBXku1TWH0138GTavVBx7KTf9mYBFQfCQWsRW8SLKL97mggHyNxBM0SeWyudrlrYCrR pZr/0cTaSKDZ9OHzJejRpi1JRAWCLbtoARg1Sfm8CBC9VG3LuRGJjcqLX439QbUuPwWQmIr9E vLD+4Kuqz/6KoOweHxHhWuFbWTVQvHu06+7uV1eJ8ioQVt1u1r9s3PD7R+mjEUcclsUGGCOCC 4C3bVZjbLLMZcyzO/L/87TkQWx6KbEMORY2K+45Law2tNXAw+J9YnKd87l8rEx//zgl028u7S Op/cFWL/Zx+SudPfBMidMeY0fykS4S3JXDV0w+s+8o+3qgMNy6mR6RroMj+y3efAhvczzDP87 cEV6LrRqcNkAhPzgWqmyqL3kXM6awajG/ZIFodOiUOcteFnrLoe8hHBXaJ5SegjO6hOYJLGNa 8wbGyGgXH1hXCk/PWt9IfvVJil/ll9+1GfjunERBIc8xcSyvtLBANyvs1jTuvY9jy+IKjKZMm 2BXUdcX5cQsMd9luzw5sAuLa0QUhfNUSWUnRQw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Without gpiolib, the gpiod_get_array_value_cansleep() is an empty stub, so gcc notices that the resulting array is never initialized: drivers/phy/motorola/phy-mapphone-mdm6600.c: In function 'phy_mdm6600_status': drivers/phy/motorola/phy-mapphone-mdm6600.c:188:16: error: 'values[0]' is used uninitialized in this function [-Werror=uninitialized] val |= values[i] << i; ~~~~~~^~~ drivers/phy/motorola/phy-mapphone-mdm6600.c:188:16: error: 'values[1]' is used uninitialized in this function [-Werror=uninitialized] drivers/phy/motorola/phy-mapphone-mdm6600.c:188:16: error: 'values[2]' is used uninitialized in this function [-Werror=uninitialized] cc1: all warnings being treated as errors With gpiolib enabled, this can't happen and we don't get the warning, so let's just add a Kconfig dependency for it. Fixes: 5d1ebbda0318 ("phy: mapphone-mdm6600: Add USB PHY driver for MDM6600 on Droid 4") Cc: Tony Lindgren Signed-off-by: Arnd Bergmann --- drivers/phy/motorola/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 Reviewed-by: Sebastian Reichel Acked-by: Tony Lindgren diff --git a/drivers/phy/motorola/Kconfig b/drivers/phy/motorola/Kconfig index 82651524ffb9..718f8729701d 100644 --- a/drivers/phy/motorola/Kconfig +++ b/drivers/phy/motorola/Kconfig @@ -13,7 +13,7 @@ config PHY_CPCAP_USB config PHY_MAPPHONE_MDM6600 tristate "Motorola Mapphone MDM6600 modem USB PHY driver" - depends on OF && USB_SUPPORT + depends on OF && USB_SUPPORT && GPIOLIB select GENERIC_PHY help Enable this for MDM6600 USB modem to work on Motorola phones