From patchwork Sun Jan 17 11:43:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 365749 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ECC6DC433DB for ; Sun, 17 Jan 2021 11:45:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B2D9320791 for ; Sun, 17 Jan 2021 11:45:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728520AbhAQLox (ORCPT ); Sun, 17 Jan 2021 06:44:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:36912 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726209AbhAQLn6 (ORCPT ); Sun, 17 Jan 2021 06:43:58 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id CAE4820791; Sun, 17 Jan 2021 11:43:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610883798; bh=pXwoBrsnCseb0AgC6oGdyk0Fn0uWj3vQ6AeXdYK/sVI=; h=From:To:Cc:Subject:Date:From; b=ipLXtIgulv0Jj64GJIAXOG9cYcv6vxE6d8SLFkzMzFcIoxOFXaWQHMk0yk7ys4qAj g95inYDJgQkA5OjHekjfIAQZ/qq2Za5fW4GxhAlbzXebr4Ykz0QQkxxK4Poev3KuQ1 vEVQOMUgw1VcdEfW16USHzHT69mS1TU0Z4UZqeByY1ryfoQJRQXi26BRwxJaSqcm9v VslLziSzXGYLHIZRM0DmJPwZRbGKyLTayYQX1cKvKB8gEo0xwGKiXJQe4pa2//iZ2i Tz2Ox+6IwojrqZkhMSS4a/MBdVWm+TOCqwh+Q54lngzX80UY67sRdry3ptbXNVfYJe LQhhEBUngPXcA== From: Krzysztof Kozlowski To: Orson Zhai , Baolin Wang , Chunyan Zhang , Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , kernel test robot Subject: [PATCH] i2c: sprd:: depend on COMMON_CLK to fix compile tests Date: Sun, 17 Jan 2021 12:43:13 +0100 Message-Id: <20210117114313.141428-1-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org The I2C_SPRD uses Common Clock Framework thus it cannot be built on platforms without it (e.g. compile test on MIPS with LANTIQ): /usr/bin/mips-linux-gnu-ld: drivers/i2c/busses/i2c-sprd.o: in function `sprd_i2c_probe': i2c-sprd.c:(.text.sprd_i2c_probe+0x254): undefined reference to `clk_set_parent' Fixes: 4a2d5f663dab ("i2c: Enable compile testing for more drivers") Reported-by: kernel test robot Signed-off-by: Krzysztof Kozlowski Reviewed-by: Baolin Wang --- drivers/i2c/busses/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index d4d60ad0eda0..ab1f39ac39f4 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig @@ -1013,6 +1013,7 @@ config I2C_SIRF config I2C_SPRD tristate "Spreadtrum I2C interface" depends on I2C=y && (ARCH_SPRD || COMPILE_TEST) + depends on COMMON_CLK help If you say yes to this option, support will be included for the Spreadtrum I2C interface.