Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3385808imu; Mon, 14 Jan 2019 01:59:33 -0800 (PST) X-Google-Smtp-Source: ALg8bN6bMfoEYSeW5Y2EOno9d/S1Cb9o1B0ogIaV9FRna+KHUa/FHdlfGGKtH+blLa4T55q5lkrA X-Received: by 2002:a17:902:24d:: with SMTP id 71mr23112888plc.225.1547459973531; Mon, 14 Jan 2019 01:59:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547459973; cv=none; d=google.com; s=arc-20160816; b=KGIggIPrhbNAV6pHzE61MPDFucpIaZW2snY/CCnoXMvPfQb2Dx0d2alNyy3aO/yZPI Uj4ET7nGrovoOtHyfjrjbz/x2KcxA78SZ0sGk7xykGm8viXjZP2gevYWes0WJooSwK9I D5WywNydi+j7sgGqOZOmFlHAkDtR9PM456hrNLvsVFN/YorAD5B15SHTSpsGyFycM5VR zf7pJdF3V7pOAkxY1ssSdUuvEy62QoYI+b5kFCE0NSjIH58NVwsjjBLH/PN2q2F5/bO2 QSUXJ67W7rkywfMv/hvLtEj3YhOP6eOraXU48vshdxjYmjpB3A0mROsQ7WyuXA9OV85X uO0A== 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 :dkim-signature; bh=wfaWNb2b+4rhgwfXb/ymqYiM5h5NpIm3LLHjGWRlmy8=; b=Qy6RBIsycrrpCyduOm4HX9zvAaaIMaK/Ph2YveVRALYn8/XzjlrXormy93gwEx6Uk7 7XlcxsRhSptqa5nB/e6KQFlJwO35nfhkSaFZq0RiUkMDVe9yYxZhRQk1Cp8r7ZJ1E8Wx N3ahMlAUgaM9c3sNXgVlkkXAyjpFPqAgow3eOeiUSK4wFfIF4L2GrqjxVk7teoRIuGxA gDVq1Cqj6Vq/vKVhskv09U6bGKQUSQLqIY2bmMyPjzdyy76ePKaBO9rY6QaKcshzUUt+ 9eEGBWhbI0rVC8EETSWraFa6pAUb6jb+ozpymEZcgCyPMLYa5z7Ym2MQPotrg2lm8jDx Gb7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="QhIPD/xg"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 86si8951251pfl.46.2019.01.14.01.59.16; Mon, 14 Jan 2019 01:59:33 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b="QhIPD/xg"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726624AbfANJ5F (ORCPT + 99 others); Mon, 14 Jan 2019 04:57:05 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:36714 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726553AbfANJ5F (ORCPT ); Mon, 14 Jan 2019 04:57:05 -0500 Received: by mail-lj1-f195.google.com with SMTP id g11-v6so18446527ljk.3 for ; Mon, 14 Jan 2019 01:57:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=wfaWNb2b+4rhgwfXb/ymqYiM5h5NpIm3LLHjGWRlmy8=; b=QhIPD/xggrsyG6bM2Jtax8BmR0+YMpQLOA7lXMEdCMV6tLoZvEvjgpoiyDrjBrE/Jg l7PihnO3HJgueg3SO7zYGEuamtTAJ/m8uTmJHViEjxvrI6sbS8V5o9tq6hVtrbmRoFBO CwG49w4k0ANEBC6rpr/O/b91jgu9BsmYlV4kA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=wfaWNb2b+4rhgwfXb/ymqYiM5h5NpIm3LLHjGWRlmy8=; b=eRA4gBaVeTr6CVEDacoSI211usswAJPc/cH5b9ov4R/iAeCQJgv5az+7tyr7OztEiu 1vzHWtRRNcSxW/ETk5fnC43apOUlOQZryrCFkKyL0fr/vwd+GQLq8EE2kwvRAKQKgJ+3 Wbkc9WDrIUVGkUDAOZKyy0UQCUIYEMWKUiJeQGFX4pRnuS7/XaYCAt9MGXD6Fq/bCNvJ +YqxtbdBnlD3pcm/OiMIUCMwKPSu26ZR1upEHfh+cMcoIIze5P1GmmWKjSHaZ+fHZfc7 qL5EMwMoKjCkuzMO079EmEOnWvhpZpDgC27R9aXvlH/Cyt/9lpxa+LSTx1V65kAPN5Hz 0KQA== X-Gm-Message-State: AJcUukd0MFAnXzDmX8ZtYj1gJyHE/AV0UbAyzgv6PoUVCfpyB48VcvzS K1ibKXHSFgrcxm6SOB1XOj+fhg== X-Received: by 2002:a2e:2e1a:: with SMTP id u26-v6mr15274568lju.8.1547459822786; Mon, 14 Jan 2019 01:57:02 -0800 (PST) Received: from localhost (c-573670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.87]) by smtp.gmail.com with ESMTPSA id 4-v6sm17077049ljw.84.2019.01.14.01.57.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 01:57:02 -0800 (PST) From: Anders Roxell To: aisheng.dong@nxp.com, festevam@gmail.com, shawnguo@kernel.org, stefan@agner.ch, linus.walleij@linaro.org Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH 2/3] pinctrl: freescale: fix link errors Date: Mon, 14 Jan 2019 10:56:59 +0100 Message-Id: <20190114095659.23082-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix link errors when PINCTRL_IMX_SCU or PINCTRL_IMXBQXP is enabled as a module and the dependent module is built-in. ld: drivers/pinctrl/freescale/pinctrl-scu.o: in function `imx_pinctrl_sc_ipc_init': pinctrl-scu.c:(.text+0x10): undefined reference to `imx_scu_get_handle' ld: pinctrl-scu.c:(.text+0x10): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `imx_scu_get_handle' ld: drivers/pinctrl/freescale/pinctrl-scu.o: in function `imx_pinconf_get_scu': pinctrl-scu.c:(.text+0xa0): undefined reference to `imx_scu_call_rpc' ld: pinctrl-scu.c:(.text+0xa0): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `imx_scu_call_rpc' ld: drivers/pinctrl/freescale/pinctrl-scu.o: in function `imx_pinconf_set_scu': pinctrl-scu.c:(.text+0x1b4): undefined reference to `imx_scu_call_rpc' ld: pinctrl-scu.c:(.text+0x1b4): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `imx_scu_call_rpc' ld: drivers/pinctrl/freescale/pinctrl-imx8qxp.o: in function `imx8qxp_pinctrl_probe': pinctrl-imx8qxp.c:(.text+0x28): undefined reference to `imx_pinctrl_probe' ld: pinctrl-imx8qxp.c:(.text+0x28): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `imx_pinctrl_probe' Rework so both depends on IMX_SCU=y. Suggested-by: Arnd Bergmann Signed-off-by: Anders Roxell --- drivers/pinctrl/freescale/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig index b318c24b61be..ac158309cfe9 100644 --- a/drivers/pinctrl/freescale/Kconfig +++ b/drivers/pinctrl/freescale/Kconfig @@ -7,7 +7,7 @@ config PINCTRL_IMX config PINCTRL_IMX_SCU bool - depends on IMX_SCU + depends on IMX_SCU=y select PINCTRL_IMX config PINCTRL_IMX1_CORE @@ -138,7 +138,7 @@ config PINCTRL_IMX8QM config PINCTRL_IMX8QXP bool "IMX8QXP pinctrl driver" - depends on ARCH_MXC && ARM64 + depends on IMX_SCU=y && ARCH_MXC && ARM64 select PINCTRL_IMX_SCU help Say Y here to enable the imx8qxp pinctrl driver -- 2.19.2