Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp921062imu; Wed, 28 Nov 2018 01:32:37 -0800 (PST) X-Google-Smtp-Source: AJdET5cA4cIZcK2CPeZj3h+coDX9ls2KSreKZHnFXZ/7MRY7vZtFUip89mpMCXjcQKQXaYtluv2j X-Received: by 2002:a62:d2c1:: with SMTP id c184mr36977316pfg.248.1543397557638; Wed, 28 Nov 2018 01:32:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543397557; cv=none; d=google.com; s=arc-20160816; b=AldZdsVTljFMydyk/5KfSZFJN1vQrda5btjDDCjelgj401eDrHF+ScZuFKzv6DDHyv bv8xpFrmV/cIKbsJTzcF9FZvTi/bRjHVGDdUxRSFtolkwL48cZlEkqB7m3pEoeD0re5b X1szKWRg4vw7jQLO3vV8wbeW7EShD/FR1FSghILf/OD+OcBVQ6mfm2gaERbrei62jfGH iOBzg31/x9Db6N+CkoQvzLZJdnozo7YGw2wxcoJIX3cEkRS3kUqxCTPpfFLJgNaYPCT/ ZY8ZW1I2szhRTBx3lohHl6/5zCDjw6LdEskZo767ORNLW0i3MDilydHUt5ckdCxJJJf8 V7Sg== 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=P+NE9uCLclRyIOK1fJ/rbZjB9x+0M0BVN3Vq/5cKKMA=; b=DOGy85+SK33s1qTWpWmMhKDfLStGagxpvMAO5F/uiHUgqmoP38HJt3A8HcIDAYb6eF Rq3B5p+vDpWG+JPh5RS1uPNvL1aUD3iLQviiWYiNSRXsVCSrJvSIz40ZhmIodscRj9MT O95r0dicJQP46ayB1bJhbjHowqrKw5q1864h64OsHp61Oq3cCiXTQ4zyKKmmE9XyHhnO GMNssrs9a9U7lq5ChBez6YwHwJDQ1/CHWtq7LJnNR9vn9jUKY/0Nfz85DbmxC8dWHp9/ 8yekwvElacrR7EXJklL1/D5xaRYVO9rru3tjNRU49KybtASm/sEX88T/4Q5b/C6mY0eO /Dyw== 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 1si7162078pls.16.2018.11.28.01.32.23; Wed, 28 Nov 2018 01:32:37 -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 S1728238AbeK1Ubf (ORCPT + 99 others); Wed, 28 Nov 2018 15:31:35 -0500 Received: from mirror2.csie.ntu.edu.tw ([140.112.30.76]:49290 "EHLO wens.csie.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727986AbeK1Ube (ORCPT ); Wed, 28 Nov 2018 15:31:34 -0500 Received: by wens.csie.org (Postfix, from userid 1000) id 518515FF73; Wed, 28 Nov 2018 17:30:28 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Alexandre Belloni , Alessandro Zummo , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland Cc: Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 05/15] rtc: sun6i: Add default clock name for LOSC Date: Wed, 28 Nov 2018 17:30:02 +0800 Message-Id: <20181128093013.24442-6-wens@csie.org> X-Mailer: git-send-email 2.20.0.rc1 In-Reply-To: <20181128093013.24442-1-wens@csie.org> References: <20181128093013.24442-1-wens@csie.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The RTC's main clock, used internally and exported to the rest of the SoC, is called "LOSC" (low speed oscillator) through the hardware documentation. This patch adds a default name for this clock, in case the device tree does not provide one. This shouldn't happen, but lets play it safe. Signed-off-by: Chen-Yu Tsai --- drivers/rtc/rtc-sun6i.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/rtc-sun6i.c b/drivers/rtc/rtc-sun6i.c index fe07310952df..8edd9e1ec007 100644 --- a/drivers/rtc/rtc-sun6i.c +++ b/drivers/rtc/rtc-sun6i.c @@ -191,6 +191,7 @@ static void __init sun6i_rtc_clk_init(struct device_node *node) struct sun6i_rtc_dev *rtc; struct clk_init_data init = { .ops = &sun6i_rtc_osc_ops, + .name = "losc", }; const char *clkout_name = "osc32k-out"; const char *parents[2]; -- 2.20.0.rc1