From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 31 Oct 2016 21:42:16 +0100 (CET) Received: from outils.crapouillou.net ([89.234.176.41]:40384 "EHLO outils.crapouillou.net" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23993010AbcJaUkUqNK90 (ORCPT ); Mon, 31 Oct 2016 21:40:20 +0100 From: Paul Cercueil To: rtc-linux@googlegroups.com, Alessandro Zummo , Alexandre Belloni , Rob Herring , Mark Rutland , Ralf Baechle , Maarten ter Huurne , Lars-Peter Clausen , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org Cc: Paul Cercueil Subject: [PATCH v3 6/7] MIPS: qi_lb60: Probe RTC driver from DT and use it as power controller Date: Mon, 31 Oct 2016 21:39:50 +0100 Message-Id: <20161031203951.5444-6-paul@crapouillou.net> In-Reply-To: <20161031203951.5444-1-paul@crapouillou.net> References: <20161030230247.20538-1-paul@crapouillou.net> <20161031203951.5444-1-paul@crapouillou.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1477946420; bh=RGFQSfBpCyp5gHgoegs89bUcKPFogR/cS1pcAtlOHTg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=eS9+uhPlozx4+gTBgIDQf63EqfHYy5dCqmdf9eiUGL+DVIh0EnkszzXPiA6rr0lH1f2DngQ1UyrlX2K3Zo8da/8eTyNye5nhRvzpF1TX7xXHnQKiE85YsRb61AZvnRCSjuPSCOJQ3mM/JU3njeo0n7ta7daJwkdlVStnrohf5mQ= Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 55620 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: paul@crapouillou.net Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips Since we already have a devicetree node for the jz4740-rtc driver, we don't have to probe it from platform code. Besides, using the jz4740-rtc driver as the power controller for the qi_lb60 platform allows us to remove the jz4740 platform power-off code, since this is the only jz4740-based board upstream. Signed-off-by: Paul Cercueil Acked-by: Maarten ter Huurne --- arch/mips/boot/dts/ingenic/qi_lb60.dts | 4 ++++ arch/mips/jz4740/board-qi_lb60.c | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) v2: New patch in this series v3: No change diff --git a/arch/mips/boot/dts/ingenic/qi_lb60.dts b/arch/mips/boot/dts/ingenic/qi_lb60.dts index 2414d63..be1a7d3 100644 --- a/arch/mips/boot/dts/ingenic/qi_lb60.dts +++ b/arch/mips/boot/dts/ingenic/qi_lb60.dts @@ -13,3 +13,7 @@ &ext { clock-frequency = <12000000>; }; + +&rtc_dev { + system-power-controller; +}; diff --git a/arch/mips/jz4740/board-qi_lb60.c b/arch/mips/jz4740/board-qi_lb60.c index 258fd03..a5bd94b 100644 --- a/arch/mips/jz4740/board-qi_lb60.c +++ b/arch/mips/jz4740/board-qi_lb60.c @@ -438,7 +438,6 @@ static struct platform_device *jz_platform_devices[] __initdata = { &jz4740_pcm_device, &jz4740_i2s_device, &jz4740_codec_device, - &jz4740_rtc_device, &jz4740_adc_device, &jz4740_pwm_device, &jz4740_dma_device, -- 2.9.3