From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C57DFA3744 for ; Thu, 27 Oct 2022 21:57:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237075AbiJ0V5U (ORCPT ); Thu, 27 Oct 2022 17:57:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236639AbiJ0V5T (ORCPT ); Thu, 27 Oct 2022 17:57:19 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18E63915DC; Thu, 27 Oct 2022 14:57:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CA767B826AC; Thu, 27 Oct 2022 21:57:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77250C433D6; Thu, 27 Oct 2022 21:57:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666907836; bh=pMcZ3lkUN+LKNn4Gtp1ga/opwaCEMemcT9ZPw3DrnXs=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Avu+f+kbJ2KSLy0gElbOxcWnteIUIwNVcCxLq9JRw2j2mfAgaYdRKwMaB607eGxQu 3Oz/7rKtot3X9iC0lMjPysHWSgdZy+2Dh2OXhzO3YFd00SkuCmp7QVL5MG4F64eNiD mmZerD7i65IeXCKqYrU5Pj3YSUJrMHcJmPDms6qqjs6TSMzx9z0RNwy1TXAaLw0Ojp 7CIOTAi3rqMDPFWg+jJWnfynRNDWBMyeuyBhT5eWXDL1Jc0Ntby1ZGVeXgPiRzDbUG 5DQfazsJTKaDInpnjybshajEvyzhzcvJkCh2qiFaif9yOPqTBeal8pR63FGpmWJF79 H7Ug50hGjllcg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20221027192024.484320-4-lis8215@gmail.com> References: <20221027192024.484320-1-lis8215@gmail.com> <20221027192024.484320-4-lis8215@gmail.com> Subject: Re: [PATCH v6 3/3] clk: Add Ingenic JZ4755 CGU driver From: Stephen Boyd Cc: Siarhei Volkau , Michael Turquette , Rob Herring , Krzysztof Kozlowski , Paul Cercueil , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org To: Siarhei Volkau Date: Thu, 27 Oct 2022 14:57:14 -0700 User-Agent: alot/0.10 Message-Id: <20221027215716.77250C433D6@smtp.kernel.org> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Quoting Siarhei Volkau (2022-10-27 12:20:23) > diff --git a/drivers/clk/ingenic/jz4755-cgu.c b/drivers/clk/ingenic/jz475= 5-cgu.c > new file mode 100644 > index 000000000..d2eb3ae0c > --- /dev/null > +++ b/drivers/clk/ingenic/jz4755-cgu.c > @@ -0,0 +1,346 @@ [...] > +static void __init jz4755_cgu_init(struct device_node *np) > +{ > + int retval; > + > + cgu =3D ingenic_cgu_new(jz4755_cgu_clocks, > + ARRAY_SIZE(jz4755_cgu_clocks), np); > + if (!cgu) { > + pr_err("%s: failed to initialise CGU\n", __func__); > + return; > + } > + > + retval =3D ingenic_cgu_register_clocks(cgu); > + if (retval) > + pr_err("%s: failed to register CGU Clocks\n", __func__); > + > + ingenic_cgu_register_syscore_ops(cgu); > +} > +CLK_OF_DECLARE_DRIVER(jz4755_cgu, "ingenic,jz4755-cgu", jz4755_cgu_init); Is there another driver that probes this device? CLK_OF_DECLARE_DRIVER() is for the situation where we want to probe this device again with another platform driver. Please add a comment indicating what that other driver is.