Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp149171pxp; Tue, 8 Mar 2022 23:13:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyW2EpvFeoATSKJywicUtF+FPaCL/Z49e1JlyL0wWbF9iTzKwdltYSliVw8xAbGTiwdlxta X-Received: by 2002:a17:907:c28:b0:6da:6f40:eced with SMTP id ga40-20020a1709070c2800b006da6f40ecedmr15943954ejc.400.1646809985882; Tue, 08 Mar 2022 23:13:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646809985; cv=none; d=google.com; s=arc-20160816; b=Y4qTr9fIZfIrA1VcB6A+A3KBUAUOiHbb+/I6Yg2TTJwiIIolACLdIr51DakVZbAkto aBS740k9LQYs0BAYYUUsScvRYb0R4+WmxD/q9d3zUmQUifplCZzqKqBpfl/rcJSG3Q7a ZEIVegUT8GHe6zTY/o5jsgfVDGRel7RnpeS0aNzmLVXoJVey4dE4FIoc9F6jMVJxnUDr KW248Rj9QhOR7of05oQTl1pv+eQI2vamviWg9rIjNmRDJbpEgIFCG+Evbn/AgZGmFyQH j2I4GhyxR4Is3SEEq0OAZISiVV38o+Ja658DHYRDc0Chqfz3MMKaFhLmWgd3pZoSBeOv IXng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=A9QdIb9+UvGlhJpo8eGlZpFaErb80+haNlQFzrQLDIg=; b=WIZ1sMKnj4YuksXj5qlk516j4VnC32Hz3JMRnovlwB1cdOrkcEEJdwFYgJhemiSKmH i75ugUc+c409oxmLWhHcV/1+k1CU7mXbWoL3miD+IUq9VB1IPhlcJ/lrRhmBRkEinwES fi9rEAMopwEyzER1fKXufl4SQWEjSdegxdMe6HBhIPe8nVxAc8M9+LaDkrZiX0FLMqL6 cnhn5FA2rh2OKxNODjdWak/VfATgzKSTKY0d+5CMIEWQB3iLqZPqDJUrSJ/aUrQhJU1b 2+tS18+g1bw0K5KB6wj69ggzgDW92GgA//ItGIWPHd3evmZ3ka44G5bxJFyHOZ22SvLA 0cZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z22-20020a17090655d600b006cfff6dbb70si585097ejp.990.2022.03.08.23.12.35; Tue, 08 Mar 2022 23:13:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230100AbiCIG4e (ORCPT + 99 others); Wed, 9 Mar 2022 01:56:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbiCIG4d (ORCPT ); Wed, 9 Mar 2022 01:56:33 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7704B161112 for ; Tue, 8 Mar 2022 22:55:32 -0800 (PST) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 09 Mar 2022 15:55:30 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id B1C8D2006F55; Wed, 9 Mar 2022 15:55:30 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 9 Mar 2022 15:55:30 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id E5EA2C1E22; Wed, 9 Mar 2022 15:55:29 +0900 (JST) From: Kunihiko Hayashi To: Michael Turquette , Stephen Boyd , Masami Hiramatsu Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi , stable@vger.kernel.org Subject: [PATCH] clk: uniphier: Fix fixed-rate initialization Date: Wed, 9 Mar 2022 15:55:18 +0900 Message-Id: <1646808918-30899-1-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixed-rate clocks in UniPhier don't have any parent clocks, however, initial data "init.flags" isn't initialized, so it might be determined that there is a parent clock for fixed-rate clock. This sets init.flags to zero as initialization. Cc: Fixes: 734d82f4a678 ("clk: uniphier: add core support code for UniPhier clock driver") Signed-off-by: Kunihiko Hayashi --- drivers/clk/uniphier/clk-uniphier-fixed-rate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/uniphier/clk-uniphier-fixed-rate.c b/drivers/clk/uniphier/clk-uniphier-fixed-rate.c index 5319cd380480..3bc55ab75314 100644 --- a/drivers/clk/uniphier/clk-uniphier-fixed-rate.c +++ b/drivers/clk/uniphier/clk-uniphier-fixed-rate.c @@ -24,6 +24,7 @@ struct clk_hw *uniphier_clk_register_fixed_rate(struct device *dev, init.name = name; init.ops = &clk_fixed_rate_ops; + init.flags = 0; init.parent_names = NULL; init.num_parents = 0; -- 2.7.4