From patchwork Tue Apr 26 07:09:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 8935391 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-renesas-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B656EBF440 for ; Tue, 26 Apr 2016 07:09:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2E38520145 for ; Tue, 26 Apr 2016 07:09:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 88F1E201E4 for ; Tue, 26 Apr 2016 07:09:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752315AbcDZHJr (ORCPT ); Tue, 26 Apr 2016 03:09:47 -0400 Received: from michel.telenet-ops.be ([195.130.137.88]:33988 "EHLO michel.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751215AbcDZHJp (ORCPT ); Tue, 26 Apr 2016 03:09:45 -0400 Received: from ayla.of.borg ([84.195.109.243]) by michel.telenet-ops.be with bizsmtp id mv9j1s00n5F7gFG06v9jdQ; Tue, 26 Apr 2016 09:09:44 +0200 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.82) (envelope-from ) id 1aux7v-0000X3-GC; Tue, 26 Apr 2016 09:09:43 +0200 Received: from geert by ramsan with local (Exim 4.82) (envelope-from ) id 1aux7w-0000BX-H4; Tue, 26 Apr 2016 09:09:44 +0200 From: Geert Uytterhoeven To: Michael Turquette , Stephen Boyd Cc: "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , Laurent Pinchart , linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 1/4] clk: renesas: mstp: Postpone call to pm_genpd_init() Date: Tue, 26 Apr 2016 09:09:39 +0200 Message-Id: <1461654582-668-2-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1461654582-668-1-git-send-email-geert+renesas@glider.be> References: <1461654582-668-1-git-send-email-geert+renesas@glider.be> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP All local setup of the generic_pm_domain structure should have been completed before calling pm_genpd_init(). Signed-off-by: Geert Uytterhoeven --- drivers/clk/renesas/clk-mstp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/clk/renesas/clk-mstp.c b/drivers/clk/renesas/clk-mstp.c index 8b597b9a380442e8..969fbb61ab07b9b8 100644 --- a/drivers/clk/renesas/clk-mstp.c +++ b/drivers/clk/renesas/clk-mstp.c @@ -316,11 +316,10 @@ void __init cpg_mstp_add_clk_domain(struct device_node *np) return; pd->name = np->name; - pd->flags = GENPD_FLAG_PM_CLK; - pm_genpd_init(pd, &simple_qos_governor, false); pd->attach_dev = cpg_mstp_attach_dev; pd->detach_dev = cpg_mstp_detach_dev; + pm_genpd_init(pd, &simple_qos_governor, false); of_genpd_add_provider_simple(np, pd); }