Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3405628imm; Tue, 17 Jul 2018 04:26:13 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdlq2HhEiZ79b46LNCTyAKhAf6UTwj4ViLLTG0JEAd2e5MTH2wBqnqgQ+sCSfrpiFZtd1tJ X-Received: by 2002:a17:902:aa46:: with SMTP id c6-v6mr1213294plr.313.1531826773183; Tue, 17 Jul 2018 04:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531826773; cv=none; d=google.com; s=arc-20160816; b=mRW6YrbuZZerM0Moa7NBjCORQo6db1h9hu3sf2rJNIS4MJMwJgMFPfb5fxOzCueCFE SiXq7C98Q4VbWafRAeiUtxEpiELJHs2zJQl7esxGsFAiEjfdHs3CMOIJOv15zEPBEm/i s7qjL8eAdfApQfb7km24aDK6qdFZL7EsBl9BpTiGtauBMowVcUVyUcZRrB5G23B9QNsJ juXRGNI8OPvKi5TamCpesVGWisw7mLy9aw/ZyZYjX9ZhbpztpKoN8WYGv1FT5pM9WiEp Wr+Kq4QIidR+du/Ol7boYzAdmvdalRtGNPLrc+SSFdD+M6Vb2/22AZ9y2krlzm2VulOD KR4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=f95cnvAKHz2LDIUfrbxH7/UwasS/e/nMiJeOdptmf04=; b=DrFafTj3z1rccZr6qhvWnjVdyUYnIo8BGH2/sGK82+ft+T42d7M+BwxSGL+AexOl4L w+2zZ6jwP55ugPSEJtUM7NcciMx70lK2ZM0i4hs9rtX/3gVm41excXxi0dNzPyV9pzJd sTIPqqKPsv7g7GvxtRPD3xvla0Uh3iBSUcKR7wqP8AGlTkIv2zJ77paKdqwrlaxHxEJ1 HyT7ey8KT98WjWMqE+Ro6am7xwhyOU84+aF2rLPUjsqfxronz4Kwju62JPg/GNeeq/Su C4VkTWX0bzbcDROnJi5QmrBbJTHz1s7PgLC/A7Ysl+cZuVbPmQfQYFT8rSIENi5T85RF YoWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BFIqFaV7; 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 t30-v6si701705pgl.488.2018.07.17.04.25.58; Tue, 17 Jul 2018 04:26:13 -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; dkim=pass header.i=@linaro.org header.s=google header.b=BFIqFaV7; 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 S1731578AbeGQL5b (ORCPT + 99 others); Tue, 17 Jul 2018 07:57:31 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:44539 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731256AbeGQL5a (ORCPT ); Tue, 17 Jul 2018 07:57:30 -0400 Received: by mail-pg1-f195.google.com with SMTP id r1-v6so307831pgp.11 for ; Tue, 17 Jul 2018 04:25:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=f95cnvAKHz2LDIUfrbxH7/UwasS/e/nMiJeOdptmf04=; b=BFIqFaV7DoWqeGOMnrMJXE8GnLVNDr/wPRbqwAHtK8nHBHWSuElEfL/YcTQQ0hEcfM l6j5XOBTxvron0FHINhiXFfd4sgyih9dWceJ+IW21X7auqAucGp9MftF7i78tXkV+M/e h76XQ8OD4Ox1Xayt1TA7h1eNjAU28DeWKAJFM= 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:in-reply-to :references:in-reply-to:references; bh=f95cnvAKHz2LDIUfrbxH7/UwasS/e/nMiJeOdptmf04=; b=pv+557pyWuUF3hM14FP2R23Fcq6a+nxdYPXt0xOg74pX8SREDGWWYy90ahqYYcVX1D HWBR19pXsi90o89IOp9/oA47l2C6vW4GE3iaBfFxm+iQPuVfKxScNOnR6kS38ej2dOkx G/l64fuH2jkySOBcreoYg1RnHVB/z6gUr5da04SWrdGhwhTRAIdP53wDDcAeZih54Vdq C4Skbi2aNOABcLlD5eC607Ws05mKzK5VeRojSEl4UKQxXpYOddGgJ/KCjQqDYWy6GZuy QWdVEIJOJtGs2J9ARVgWbvEqE4YeZfTXW4VSBKaRhLzTo736ASjitwoV70I7gO84b07s qKzg== X-Gm-Message-State: AOUpUlGk6eZJC2tiRk0QT6BE5ie/8Kb02FE108TS1y7MQlVZU6kkTVCd mTOlwY+je215h6kd0zY0RiLXiA== X-Received: by 2002:a63:8848:: with SMTP id l69-v6mr1161273pgd.377.1531826719616; Tue, 17 Jul 2018 04:25:19 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id y3-v6sm1391207pge.29.2018.07.17.04.25.17 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Jul 2018 04:25:19 -0700 (PDT) From: Baolin Wang To: ysato@users.sourceforge.jp, dalias@libc.org, corbet@lwn.net Cc: baolin.wang@linaro.org, arnd@arndb.de, broonie@kernel.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH 4/4] sh: remove board_time_init() callback Date: Tue, 17 Jul 2018 19:24:27 +0800 Message-Id: <0ad306a7d410d3695c7869bf081efaa71e956ae4.1531826106.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann The only remaining user of board_time_init() is the of-generic machine, and that just calls the global timer_init() function. Calling that one has no effect on non-DT platforms, so we can simply call it unconditionally in place of board_time_init(). Signed-off-by: Arnd Bergmann Signed-off-by: Baolin Wang --- Documentation/sh/new-machine.txt | 8 -------- arch/sh/boards/of-generic.c | 8 -------- arch/sh/include/asm/rtc.h | 1 - arch/sh/kernel/time.c | 5 +---- 4 files changed, 1 insertion(+), 21 deletions(-) diff --git a/Documentation/sh/new-machine.txt b/Documentation/sh/new-machine.txt index f035416..e0961a66 100644 --- a/Documentation/sh/new-machine.txt +++ b/Documentation/sh/new-machine.txt @@ -116,7 +116,6 @@ might look something like: * arch/sh/boards/vapor/setup.c - Setup code for imaginary board */ #include -#include /* for board_time_init() */ const char *get_system_type(void) { @@ -132,13 +131,6 @@ int __init platform_setup(void) * this board. */ - /* - * Presume all FooTech boards have the same broken timer, - * and also presume that we've defined foo_timer_init to - * do something useful. - */ - board_time_init = foo_timer_init; - /* Start-up imaginary PCI ... */ /* And whatever else ... */ diff --git a/arch/sh/boards/of-generic.c b/arch/sh/boards/of-generic.c index 46b2481..ee74ff1 100644 --- a/arch/sh/boards/of-generic.c +++ b/arch/sh/boards/of-generic.c @@ -116,18 +116,10 @@ static void __init sh_of_mem_reserve(void) early_init_fdt_scan_reserved_mem(); } -static void __init sh_of_time_init(void) -{ - pr_info("SH generic board support: scanning for clocksource devices\n"); - timer_probe(); -} - static void __init sh_of_setup(char **cmdline_p) { struct device_node *root; - board_time_init = sh_of_time_init; - sh_mv.mv_name = "Unknown SH model"; root = of_find_node_by_path("/"); if (root) { diff --git a/arch/sh/include/asm/rtc.h b/arch/sh/include/asm/rtc.h index fe55fbb..69dbae2 100644 --- a/arch/sh/include/asm/rtc.h +++ b/arch/sh/include/asm/rtc.h @@ -3,7 +3,6 @@ #define _ASM_RTC_H void time_init(void); -extern void (*board_time_init)(void); #define RTC_CAP_4_DIGIT_YEAR (1 << 0) diff --git a/arch/sh/kernel/time.c b/arch/sh/kernel/time.c index eb0a912..a29eb98 100644 --- a/arch/sh/kernel/time.c +++ b/arch/sh/kernel/time.c @@ -22,8 +22,6 @@ #include #include -void (*board_time_init)(void); - static void __init sh_late_time_init(void) { /* @@ -41,8 +39,7 @@ static void __init sh_late_time_init(void) void __init time_init(void) { - if (board_time_init) - board_time_init(); + timer_init(); clk_init(); -- 1.7.9.5