From patchwork Mon May 30 18:57:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9142055 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 4B01560757 for ; Mon, 30 May 2016 19:02:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 24C3B28066 for ; Mon, 30 May 2016 19:02:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19B522819E; Mon, 30 May 2016 19:02:46 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable 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 BB6F728066 for ; Mon, 30 May 2016 19:02:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161905AbcE3TCd (ORCPT ); Mon, 30 May 2016 15:02:33 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:53157 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161870AbcE3S60 (ORCPT ); Mon, 30 May 2016 14:58:26 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue104) with ESMTPA (Nemesis) id 0LxwDU-1bb8N92Cqy-015Kvi; Mon, 30 May 2016 20:57:59 +0200 From: Arnd Bergmann To: Alexandre Belloni Cc: Arnd Bergmann , geert@linux-m68k.org, gregkh@linuxfoundation.org, deller@gmx.de, benh@kernel.crashing.org, mpe@ellerman.id.au, dalias@libc.org, dhowells@redhat.com, linux-alpha@vger.kernel.org, a.zummo@towertech.it, linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org, linux-m68k@lists.linux-m68k.org, rtc-linux@googlegroups.com, linux-arch@vger.kernel.org Subject: [PATCH v4 06/16] char/genrtc: remove mn10300 support Date: Mon, 30 May 2016 20:57:54 +0200 Message-Id: <1464634684-1248135-7-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1464634684-1248135-1-git-send-email-arnd@arndb.de> References: <1464634684-1248135-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:CcVavVpLaF2wfezVOp2TS6EzaJeih6848b2VLgOmKryEwQxT8er CVMlbXNyde8gPZDmXNDuDC0cgvRR8+N3cp6MKVxxg5FKnXmp91L59HWSas/zfFsUUDQjD9F xaEe9ZOnfZpnRb0tcDsRvHOd9GdJmV08rHD/y19hhHCrWkpQEF/4y2fhFGZvT8dwaufuWeY zT07LbhkpMyV4f8DBBs0w== X-UI-Out-Filterresults: notjunk:1; V01:K0:vQgFTRKkg3E=:9NgRm2+3HYJrFm8QmyjOVZ oLStmGkX/Xc1Tn8A/rdgpCsREtRgG8Z+0eSSUOh+nDzLETYUDKlp9ynrVAeh0r81Ex+vDAmkk gkLXvLOylWlfDlrmjpKyD1KkjUVKMKxHnTUgUyYfthmRLAis/cz3xGb6m7A8r4EIL9URdr4Hf iOmyTcTi8f+ArZMQI3sbc/rREfvV5QpJeK8I9VWBaGi8zcA38kJiDgXw2e9ViZN0epYW5TDoj rcV4oHJi0ZKOvmXnyGH2V03UIU31vLTA2MSpLQoKkgbfWkutMz3kpH+pfHJN1EdnY0Xr8+wv1 igziDGdxN3y6Wg92R3U9hqILlSHjf9pIg1lpkJ9CtauUClsik23uhmuwHBgBrEkXRU49Scm+j UPdvnAdEhjkDExAK8iReKl6h7sIRwYAZfZbCl+5NDxZ6sKTyQlI8PHi3QAiPGCQo81clF2tnR U7PqSpkN/pqA8QooQjOszLV7Rz/dxkNWLKgvwR62OpG65/JfPBpXZZhCVervwbVXX8OEIbKOe P1ZTXjtvvtXxKhvn9apt2uQZuKM7pm3NmVsbatpJMbbhOrXPSJEJHVhRqCcDeo2j6ZXSQt/0+ DRiM20zdA0m69yHMq91RVc1sDTF3Vl5Ol3dHj4ELlHgGH2A8HcKrU4p9mJcoxnopFG9rmPq1e BfI26mZXsFP5jln9F2paYLxZr92lDpb7QMcK45WQFcVcdFUf9OelhOga4/qxmC4uwBdo= Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The genrtc driver serves no purpose on mn10300 because it drives the same hardware as the original rtc.c driver, and the newer rtc-generic.c or rtc-cmos.c drivers on architectures that use the asm-generic/rtc.h header. I assume it was initially only added for completeness when the mn10300 port was done, but the older rtc.c driver was always used instead. We can also stop include asm-generic/rtc.h now, because we just call mc146818_set_time() directly. It would be nice to change the architecture to use the rtc-cmos driver next, and remove support for the old rtc driver as well. Signed-off-by: Arnd Bergmann --- arch/mn10300/include/asm/rtc.h | 2 -- arch/mn10300/kernel/rtc.c | 2 +- arch/mn10300/proc-mn103e010/proc-init.c | 1 + arch/mn10300/proc-mn2ws0050/proc-init.c | 1 + drivers/char/Kconfig | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/mn10300/include/asm/rtc.h b/arch/mn10300/include/asm/rtc.h index 6c14bb1d0d9b..07dc87656197 100644 --- a/arch/mn10300/include/asm/rtc.h +++ b/arch/mn10300/include/asm/rtc.h @@ -25,6 +25,4 @@ static inline void calibrate_clock(void) #endif /* !CONFIG_MN10300_RTC */ -#include - #endif /* _ASM_RTC_H */ diff --git a/arch/mn10300/kernel/rtc.c b/arch/mn10300/kernel/rtc.c index 48d7058b3295..77e0be4d92ea 100644 --- a/arch/mn10300/kernel/rtc.c +++ b/arch/mn10300/kernel/rtc.c @@ -27,7 +27,7 @@ void read_persistent_clock(struct timespec *ts) { struct rtc_time tm; - get_rtc_time(&tm); + mc146818_set_time(&tm); ts->tv_nsec = 0; ts->tv_sec = mktime(tm.tm_year, tm.tm_mon, tm.tm_mday, diff --git a/arch/mn10300/proc-mn103e010/proc-init.c b/arch/mn10300/proc-mn103e010/proc-init.c index 27b97980dca4..d4dcb0c56b35 100644 --- a/arch/mn10300/proc-mn103e010/proc-init.c +++ b/arch/mn10300/proc-mn103e010/proc-init.c @@ -9,6 +9,7 @@ * 2 of the Licence, or (at your option) any later version. */ #include +#include #include #include #include diff --git a/arch/mn10300/proc-mn2ws0050/proc-init.c b/arch/mn10300/proc-mn2ws0050/proc-init.c index ee6d03dbc8d8..950cc8dbb284 100644 --- a/arch/mn10300/proc-mn2ws0050/proc-init.c +++ b/arch/mn10300/proc-mn2ws0050/proc-init.c @@ -14,6 +14,7 @@ #include #include +#include #include #include #include diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig index e3f2f3e293e5..1d9e3063373b 100644 --- a/drivers/char/Kconfig +++ b/drivers/char/Kconfig @@ -328,7 +328,7 @@ config JS_RTC config GEN_RTC tristate "Generic /dev/rtc emulation" depends on RTC!=y - depends on M68K || MN10300 || PARISC || PPC + depends on M68K || PARISC || PPC ---help--- If you say Y here and create a character special file /dev/rtc with major number 10 and minor number 135 using mknod ("man mknod"), you