From patchwork Fri Oct 18 15:41:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 176891 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1033733ill; Fri, 18 Oct 2019 08:45:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHtiKyuYOoisre4qfLbiQyXkParAwRd1KZJOWXEzN4zv4M+XTfdV9tc1xzbdJ83CUN62DB X-Received: by 2002:a17:906:fcac:: with SMTP id qw12mr9153790ejb.31.1571413537620; Fri, 18 Oct 2019 08:45:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571413537; cv=none; d=google.com; s=arc-20160816; b=rhqxsDOQmt3vQb6bEH2yKCOyt+6oxqt4Xn3V3TpEdy5eMGm2y93vo477XxMgYKewfD hbbTrIcTSNX8kB93nxMNCu61atuWiyzNLaVv3guhZciXinWQdYIpK1VBtfBn4GXHcmTi FJH+/njEfxkJgLSuuPdCooscsRBuSPlQ2MT3BjLexXc3fYPpkHEj4tDWmfl+T6mcxD/L CQpG0OYQ6rV4fgx9KoCMTen3A+c86UrmBYnCdZrs2N5LWtGzjKF4M6z4J5JoZVquiF1M 7H7c011EhO7ZnzxNFVKi5ZIO8Cx+V3BjnJghKoA86cRwjNsxa5xMSUMW5TyCPauFdDkO UvZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=7esAuS9B1CeiJHISC1IOGl3q5mWPrAP/1VkJSK7gZ00=; b=YaKZhOMPTNKqOq78tXD7UczWmNByZGiZkMJVS6a56w8DjPzpzRzj8Hd73vYkNkmKhN dEAcQe30WshHNXT8fAPTcxBiO1u9oq1BTHez38krwzkLPCE1g/etgGP3w5Ny+o3FwMny kLSxcuoGqE0Z/nEdWJxGMWTaV0bi/W3uIG4xp+2HPeWJYqiDAalIqbXZUFXOGQeLwXgZ NKlgiVuIaXSyohIQYkXvsZ2lD8k86BDKLM9qhLYgjR4hrumZ4lf9Artm5sKZsmvKBMmR bvQljGu+epe/V0mEMostYQ60KnQGN0DJKRMnl91t2ssbvsgbpVcISDo3T1SXg8lYTH10 nd4Q== 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 be24si3967733edb.120.2019.10.18.08.45.37; Fri, 18 Oct 2019 08:45:37 -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 S2408864AbfJRPmY (ORCPT + 26 others); Fri, 18 Oct 2019 11:42:24 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:55249 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728464AbfJRPmX (ORCPT ); Fri, 18 Oct 2019 11:42:23 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1MMGVE-1iefOy3vpW-00JN2x; Fri, 18 Oct 2019 17:42:15 +0200 From: Arnd Bergmann To: Daniel Mack , Haojian Zhuang , Robert Jarzmik Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linus Walleij , Arnd Bergmann Subject: [PATCH 01/46] ARM: pxa: split mach/generic.h Date: Fri, 18 Oct 2019 17:41:16 +0200 Message-Id: <20191018154201.1276638-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20191018154052.1276506-1-arnd@arndb.de> References: <20191018154052.1276506-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:iVpqPa86ze0iu6OOhejjP0amJ+TBDw2xGngL1judoPmHRjZqhrN Q8EV0/l37SyeJE75D3N0sPgmWDWfWo3kfjx4Em1fWmC+AqabmnYF6cwMs7AEN7c0tR/Z5mh 8hLOuC4xixrHLW0YeCu/YYym6BIPrIMwr7Df6OMgqkBrdWo/qM7oNnqRHAo4wN3I/zLbZ7L GlXM6ZyWBP6LsF4XfIoUQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:zZptb6vq8zo=:s2X4MeHnHk9Lnsa8+6HPrv 5iWkf8Ogxx4F2D5bQeqlIN8hnoKsIoke3kROPXtoWwAsgN/Mvgphi7O/1KVM62gqsVXB4uBUq QScfAuVc2CZ8xiei7BMhcnHUazOJG3tNXI+l3CA23fFXlmrtEoGJFSw7F3afJCgl54UtHmx1Y /QZwSwoVo+zjXlpLxNICYSt6n12AlFt7HVgkbM+cjj/vAyBXQ/MlU7ZKro7bzSGMnFdRoMZ6X S7KUITNX7C/e0OKxkdy1AvOGTsASKLORorjb813zTf7ZirNfGUVdVB8LFP4Oifzxsbdl0wlS2 tp2deM99n2HYbQGZgO1zR++T4iQF1CEDbEIEXWgOZSAA7lkPX1Tbf26l/N81xs+t7hNSVG4TJ piwFW1fo+7M2TZTvATuN0iDJKraGYum+IezXddTa6eU9/peK9Fkz/fJ9K6qUxoqNXwU7/pjBM oGtM+XLr4s1dng303bjLH5TV8ajpR7SjpVzxKjsQ6AvXTtShp7HwFRuVKp+dzBFR0PH3APhrl Cpcj12H0cm7Vtxd0vSgQ7e/DMMPkvB4+EDK4hbt25MW/1D8kmbtYRfk9GLIYY9Ta9YeRnmRNp EuOovsX75bzAy/WY4EoF74EwXpdl2c7uiin15oWo4LEt9InZk6pmuik6LXXy497IMjsqj40mY zlsta6/sLUIXNSauSAtsxfxGLDT8OuDI2WCpjkqz+6KfWEFuo5zL+fg98GPi9rZ1f3TXecJSk iXuMvRUEQWgcI/3gT54guvIEuitSDyehDWK8KwzHQApnkVzUZ3+7Bk7RiVdIo5+nbAtyviXKg tDd30zvyCrWdDSoLe8op6L0RmbI5nySrkijI9JvuFREP81peEn3MoVcf/mfB027BdZBk1QpYk nNMQ503PoGBx79gW3/zQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Only one declaration from this header is actually used in drivers, so move that one into the global location and leave everything else private. Signed-off-by: Arnd Bergmann --- arch/arm/mach-pxa/generic.h | 6 +----- arch/arm/mach-pxa/include/mach/generic.h | 6 +++++- 2 files changed, 6 insertions(+), 6 deletions(-) -- 2.20.0 Acked-by: Robert Jarzmik diff --git a/arch/arm/mach-pxa/generic.h b/arch/arm/mach-pxa/generic.h index 3b7873f8e1f8..67925d3ea026 100644 --- a/arch/arm/mach-pxa/generic.h +++ b/arch/arm/mach-pxa/generic.h @@ -7,6 +7,7 @@ */ #include +#include struct irq_data; @@ -71,8 +72,3 @@ extern unsigned pxa25x_get_clk_frequency_khz(int); #define pxa27x_get_clk_frequency_khz(x) (0) #endif -#ifdef CONFIG_PXA3xx -extern unsigned pxa3xx_get_clk_frequency_khz(int); -#else -#define pxa3xx_get_clk_frequency_khz(x) (0) -#endif diff --git a/arch/arm/mach-pxa/include/mach/generic.h b/arch/arm/mach-pxa/include/mach/generic.h index 665542e0c9e2..613f6a299d0d 100644 --- a/arch/arm/mach-pxa/include/mach/generic.h +++ b/arch/arm/mach-pxa/include/mach/generic.h @@ -1 +1,5 @@ -#include "../../generic.h" +#ifdef CONFIG_PXA3xx +extern unsigned pxa3xx_get_clk_frequency_khz(int); +#else +#define pxa3xx_get_clk_frequency_khz(x) (0) +#endif