From patchwork Mon Apr 10 12:15:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Regnery X-Patchwork-Id: 9672503 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 8F546600CB for ; Mon, 10 Apr 2017 12:19:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8625C2787C for ; Mon, 10 Apr 2017 12:19:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7AE0627D0C; Mon, 10 Apr 2017 12:19:06 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 24B502787C for ; Mon, 10 Apr 2017 12:19:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753191AbdDJMTF (ORCPT ); Mon, 10 Apr 2017 08:19:05 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35525 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752963AbdDJMTF (ORCPT ); Mon, 10 Apr 2017 08:19:05 -0400 Received: by mail-wm0-f66.google.com with SMTP id d79so9342357wmi.2; Mon, 10 Apr 2017 05:19:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=WkteYv6G4AzvCOYMdsSCW1wrMsan3ad9WR0vwKaVlyA=; b=INe3+o4AOloPJNFpTgFWq19B/w7siN6FnsTt/1BI8sdBtvbIWk4Q+/VfEucxHSH7xE fv6VQmApVz+c0YnE0Q0STJCXZoZv41jbFP4v0wqpu9btn+aCZBl7whk8qVapANA6KT+T 9t4V0quqR/iQJ/+aAczK/9G18PwbT4OvjE6aelD8ei1fl1wij6ztsU+bkdo7p9/NCht5 9osgU6BNKiLa1byBONpe3t50xMUXfmpwJpdHXJ8JaQH/9ul8IhOHdfeaGJckpOYCTGTk X4i8/xzgdxYv+WRsoje7V6LXucFF2RuIzbH6W06V2gBfTR1E/09u4/itcLz9QZcOUZL7 16Yg== 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=WkteYv6G4AzvCOYMdsSCW1wrMsan3ad9WR0vwKaVlyA=; b=fG7yb+gie8zwOjJVo/29oR58E6OXXZBYgzPaDC6kCZIkP5GfFgyhVbs0WwEagxBvgk iPK+GrZ1SB0iQ2iBYvkhakTmXnA5+rot8hmrPVKtv4w7ClenP5AAQZepPg/cNDIaOHPQ evcwRN3npn1rGij0cnaNAmDgrhQivC1aaB7PLvCUccjNsAlqdegUMbwLeLz5cKWqZHan 0ZtXJ8ucXUi3uYZ3/UWakt6i046MEJYFQOmJQ+smLF1GSttoxha+CRmAfNruKNrlvcsj eesQrwjOeUqPhOOOLo/qtwkNzcKcmN6Zwe0L87/QslalstBjeE//j9DjoD7Kz5s4XRfK FJbg== X-Gm-Message-State: AN3rC/6yeXRM84Ea8eNxmLC4ne6zh/DuEZykpnbhidFDMG5T46SdzxjUcMCKY1OmJRb4sA== X-Received: by 10.28.54.66 with SMTP id d63mr9377720wma.103.1491826743480; Mon, 10 Apr 2017 05:19:03 -0700 (PDT) Received: from [127.0.1.1] ([83.243.48.55]) by smtp.gmail.com with ESMTPSA id o22sm17112055wro.45.2017.04.10.05.19.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Apr 2017 05:19:02 -0700 (PDT) From: Tobias Regnery To: maxime.ripard@free-electrons.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Tobias Regnery Subject: [PATCH] clk: sunxi-ng: fix build failure in ccu-sun9i-a80 driver Date: Mon, 10 Apr 2017 14:15:44 +0200 Message-Id: <20170410121544.13248-1-tobias.regnery@gmail.com> X-Mailer: git-send-email 2.11.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The ccu-sun9i-a80 driver uses the ccu_mult_ops struct, but unlike the other users it doesen't select the corresponding Kconfig symbol under which the struct is compiled in. This results in the following link error with CONFIG_SUN9I_A80_CCU=y and CONFIG_SUNXI_CCU_MULT=n: drivers/built-in.o:(.data+0x2d638): undefined reference to 'ccu_mult_ops' Fix this by explicitly selecting CONFIG_SUNXI_CCU_MULT like the other users of the struct. Signed-off-by: Tobias Regnery --- drivers/clk/sunxi-ng/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/sunxi-ng/Kconfig b/drivers/clk/sunxi-ng/Kconfig index fbd3f8cd5c22..64088e599404 100644 --- a/drivers/clk/sunxi-ng/Kconfig +++ b/drivers/clk/sunxi-ng/Kconfig @@ -143,6 +143,7 @@ config SUN8I_V3S_CCU config SUN9I_A80_CCU bool "Support for the Allwinner A80 CCU" select SUNXI_CCU_DIV + select SUNXI_CCU_MULT select SUNXI_CCU_GATE select SUNXI_CCU_NKMP select SUNXI_CCU_NM