Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp357004ybv; Thu, 13 Feb 2020 01:41:08 -0800 (PST) X-Google-Smtp-Source: APXvYqyAhFlVOP5uxOYCPvvOt2atjsne4FvzoL4Ui6WAGKull1Ap++szITMFdoC5C/gA1qxv4mU+ X-Received: by 2002:a9d:4801:: with SMTP id c1mr13060358otf.258.1581586868142; Thu, 13 Feb 2020 01:41:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581586868; cv=none; d=google.com; s=arc-20160816; b=Q7Kyr4aEDfNHnul4Uyw41ksDQ/Dc2v7QGgPDLDqKxFfj2N49QGZTxJPy9einkSDVUY mpUqSv+X2yiud1mmes4Pr2j3PdeNaJauTT3ecz1E2rob2NtNzmMyE361b3U3BPtH8zg0 25ezvmBJtSPJDRpBcxWot7hwhI3sPkd8CTUIWsk/LVaHSJJtkHPKjVwj3+q/tQda2bcm vw1jQgGBduSmVKvHRUowxlStiUHLxPfx16W2DqbQdCtOrIr/cPzim4Nqe+4o0wlfRhzR IyIVdjGvsiHa6qKmTnXD0bLrB29hMtxKadTvbFmGCitCgQrzKM/RoGFJPuf3dNfIfyP0 giTg== 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; bh=XhcoCi8QpDNN/Orpp7qcZz7/lX1m3htt9SaygbLMUw4=; b=YzGwwWiRpaRs6e1i+Eqsuot2Sr5Eq5K4Isz5OMXWbWaq6RGfQ5s9dCacADS8bZDRJ8 +FZsK/2LxfDaj8Hj5cRU6DZ5k903oZY2woXKV5zqZ1Fpx2A4kivGalaZVaZrQGuGtyB2 /naQZmCvTy3Ihh1WhfFEbPvWM65EUH94vycCLGr7At9y/AaEjl5eiy2FYaj50sEsbN7C 3SCE0mCIeIjaxgS0gsWgqjX75Ok3Kn9qDUatObTK2n8MEzQyNDxZ+3Pg6nGfpdMo0Vdp SGjo+Aboah0j38mMJnsZMi5M/I9nHY875DQBFvS/LCXnKnadgPXZJpJtS72rS9qBLY+D WLTA== 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 a4si807924otq.98.2020.02.13.01.40.55; Thu, 13 Feb 2020 01:41:08 -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; 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 S1729623AbgBMJkr (ORCPT + 99 others); Thu, 13 Feb 2020 04:40:47 -0500 Received: from andre.telenet-ops.be ([195.130.132.53]:46304 "EHLO andre.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729440AbgBMJkr (ORCPT ); Thu, 13 Feb 2020 04:40:47 -0500 Received: from ramsan ([84.195.182.253]) by andre.telenet-ops.be with bizsmtp id 29gj220075USYZQ019gj7i; Thu, 13 Feb 2020 10:40:44 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1j2AzD-0007zc-5i; Thu, 13 Feb 2020 10:40:43 +0100 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1j2A0b-0006Ku-4K; Thu, 13 Feb 2020 09:38:05 +0100 From: Geert Uytterhoeven To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2] powerpc/time: Replace by Date: Thu, 13 Feb 2020 09:38:04 +0100 Message-Id: <20200213083804.24315-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The PowerPC time code is not a clock provider, and just needs to call of_clk_init(). Hence it can include instead of . Remove the #ifdef protecting the of_clk_init() call, as a stub is available for the !CONFIG_COMMON_CLK case. Signed-off-by: Geert Uytterhoeven Reviewed-by: Stephen Boyd --- v2: - Add Reviewed-by, - Remove #ifdef. --- arch/powerpc/kernel/time.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index 1168e8b37e30696d..8ce3fa8a8c0a2d63 100644 --- a/arch/powerpc/kernel/time.c +++ b/arch/powerpc/kernel/time.c @@ -50,7 +50,7 @@ #include #include #include -#include +#include #include #include #include @@ -1158,9 +1158,7 @@ void __init time_init(void) init_decrementer_clockevent(); tick_setup_hrtimer_broadcast(); -#ifdef CONFIG_COMMON_CLK of_clk_init(NULL); -#endif } /* -- 2.17.1