Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2756595pxa; Tue, 25 Aug 2020 02:18:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJye5o+Njlt2VG5G4mwC2A1P9MaoRUyYGr30NhEcQn7kMBt/5j+wg7BxvrdAzLB+5JsYBH0K X-Received: by 2002:a50:f701:: with SMTP id g1mr9717989edn.54.1598347126703; Tue, 25 Aug 2020 02:18:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598347126; cv=none; d=google.com; s=arc-20160816; b=CYwdqsUewGW/0c1RCiHYoB/YUKPLauGrqzGcGwUHazLUsIi+9ESon7Rtxfn9wtM3u6 HqLRXn6i8IijpkrHc9Kt93SuXQIqG36diTwG++OO9JXa1R6g7vN/VEvK8hEssIprl3Jo cYb/gouqTeQr09AwjNuzgxiBgO5DhP/iZcSTWtZqzHPOO/z8cCRMSWiHWpxmymEffKUo giPgmq3T64og+ThGLIkfXUDlu9T7cW7Y0CAQY+AmfYSM2qlyM4gYGn8/TFD0wEYM6ZD3 a45/0F9lL03gKaxLp9sBIUczmcCkAaI3K3rYncvJPhVFviJUbk2AK4Nb2IEOFH/tLQXn saLw== 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:message-id:date :subject:to:from; bh=AmVQFj6OEs+6+Vin1RwkenynrSxrtcBZNq1LWzYRK60=; b=J4a7f5ZzvPy1GQISa6Qo/ORHaN2yklBD2c0qNmjUDNAHaWTPFPfalQiDyWc4bZKVd1 Eq7nUMvnvPioYws4uICOYKgF9wsfHATMa29ScC5XLjL1iDubWHukohbCTiYOuneQSrDp BEF4c+ZzpiFZN7QK6wqDqQlZhKHYH0mwzdh2+qfECNSBLzAWQ0EvPmToamF3Q99ubKeE 9FNDTi4+2zB0WHAEjWEiWH20uhj51u1aBxdpfzx8XUJDXE7VHJyDAPNBh2Mf/ihg6sn2 dYHbkwwlLlWi0+GwdvuZ6trLjSa3vGntzGEGMbLJyK5dru2frjfjLUNZAeSawRfoNOUs RcWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce15si9084632edb.201.2020.08.25.02.18.23; Tue, 25 Aug 2020 02:18:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729338AbgHYJJY (ORCPT + 99 others); Tue, 25 Aug 2020 05:09:24 -0400 Received: from mx2.suse.de ([195.135.220.15]:50024 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726166AbgHYJJN (ORCPT ); Tue, 25 Aug 2020 05:09:13 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 99C6FB009; Tue, 25 Aug 2020 09:09:42 +0000 (UTC) From: Thomas Bogendoerfer To: Jiaxun Yang , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] MIPS: Loongson2ef: Remove specific mc146818rtc.h Date: Tue, 25 Aug 2020 11:09:05 +0200 Message-Id: <20200825090907.66681-2-tsbogend@alpha.franken.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200825090907.66681-1-tsbogend@alpha.franken.de> References: <20200825090907.66681-1-tsbogend@alpha.franken.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Loonson2ef's mc146818rtc.h is the same as the generic one -> remove it. Signed-off-by: Thomas Bogendoerfer --- .../include/asm/mach-loongson2ef/mc146818rtc.h | 36 ---------------------- 1 file changed, 36 deletions(-) delete mode 100644 arch/mips/include/asm/mach-loongson2ef/mc146818rtc.h diff --git a/arch/mips/include/asm/mach-loongson2ef/mc146818rtc.h b/arch/mips/include/asm/mach-loongson2ef/mc146818rtc.h deleted file mode 100644 index 00d602629a55..000000000000 --- a/arch/mips/include/asm/mach-loongson2ef/mc146818rtc.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This file is subject to the terms and conditions of the GNU General Public - * License. See the file "COPYING" in the main directory of this archive - * for more details. - * - * Copyright (C) 1998, 2001, 03, 07 by Ralf Baechle (ralf@linux-mips.org) - * - * RTC routines for PC style attached Dallas chip. - */ -#ifndef __ASM_MACH_LOONGSON2EF_MC146818RTC_H -#define __ASM_MACH_LOONGSON2EF_MC146818RTC_H - -#include - -#define RTC_PORT(x) (0x70 + (x)) -#define RTC_IRQ 8 - -static inline unsigned char CMOS_READ(unsigned long addr) -{ - outb_p(addr, RTC_PORT(0)); - return inb_p(RTC_PORT(1)); -} - -static inline void CMOS_WRITE(unsigned char data, unsigned long addr) -{ - outb_p(addr, RTC_PORT(0)); - outb_p(data, RTC_PORT(1)); -} - -#define RTC_ALWAYS_BCD 0 - -#ifndef mc146818_decode_year -#define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1970) -#endif - -#endif /* __ASM_MACH_LOONGSON2EF_MC146818RTC_H */ -- 2.16.4