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 86F5EECAAD3 for ; Mon, 19 Sep 2022 14:43:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229804AbiISOm6 (ORCPT ); Mon, 19 Sep 2022 10:42:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229727AbiISOmy (ORCPT ); Mon, 19 Sep 2022 10:42:54 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D30B114E; Mon, 19 Sep 2022 07:42:53 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8C26CD02; Mon, 19 Sep 2022 16:42:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1663598571; bh=Qy9RieIsYHYKDGtK6BcRK5+sUjxroS2wx65CmlGOgkk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Sib6AlAh/7VZXk/FgLUZUSnLNwQHjsG5ad5i/9Flb1b2k27JjnXOt4WBlUQWNWHXs DSsTIVwTPeS4TL8Ofll6YHvItDYLZCEqlR/sEZpFYYW5tNt6zFIiVJbmI44hgrka1L qekRl6d9ejXyHM9f0HR0y2JsuXL8yVt15iX1nFNM= Date: Mon, 19 Sep 2022 17:42:38 +0300 From: Laurent Pinchart To: Prabhakar Cc: Mauro Carvalho Chehab , Sakari Ailus , Jacopo Mondi , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Lad Prabhakar Subject: Re: [PATCH] media: i2c: ov5645: Drop fetching the clk reference by name Message-ID: References: <20220919143350.176746-1-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220919143350.176746-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prabhakar, Thank you for the patch. On Mon, Sep 19, 2022 at 03:33:50PM +0100, Prabhakar wrote: > From: Lad Prabhakar > > The OV5645 sensor has a single clock source, so just drop fetching the > clk reference by name. > > This is in preparation to drop the "clock-names" property from the DT > binding. > > Suggested-by: Laurent Pinchart > Signed-off-by: Lad Prabhakar Reviewed-by: Laurent Pinchart > --- > drivers/media/i2c/ov5645.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/i2c/ov5645.c b/drivers/media/i2c/ov5645.c > index 81e4e87e1821..47451238ca05 100644 > --- a/drivers/media/i2c/ov5645.c > +++ b/drivers/media/i2c/ov5645.c > @@ -1090,7 +1090,7 @@ static int ov5645_probe(struct i2c_client *client) > } > > /* get system clock (xclk) */ > - ov5645->xclk = devm_clk_get(dev, "xclk"); > + ov5645->xclk = devm_clk_get(dev, NULL); > if (IS_ERR(ov5645->xclk)) { > dev_err(dev, "could not get xclk"); > return PTR_ERR(ov5645->xclk); -- Regards, Laurent Pinchart