From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760557AbcLUXPR (ORCPT ); Wed, 21 Dec 2016 18:15:17 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:39640 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757414AbcLUXOs (ORCPT ); Wed, 21 Dec 2016 18:14:48 -0500 DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org AFC9C60CE1 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=sboyd@codeaurora.org Date: Wed, 21 Dec 2016 15:14:46 -0800 From: Stephen Boyd To: Eric Anholt Cc: Florian Fainelli , Michael Turquette , Rob Herring , Mark Rutland , dri-devel@lists.freedesktop.org, Thierry Reding , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Stephen Warren , Lee Jones , bcm-kernel-feedback-list@broadcom.com, linux-clk@vger.kernel.org Subject: Re: [PATCH 02/11] clk: bcm2835: Register the DSI0/DSI1 pixel clocks. Message-ID: <20161221231446.GA8288@codeaurora.org> References: <20161214194621.16499-1-eric@anholt.net> <20161214194621.16499-3-eric@anholt.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161214194621.16499-3-eric@anholt.net> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/14, Eric Anholt wrote: > > /* the gates */ > > @@ -1890,8 +1976,18 @@ static int bcm2835_clk_probe(struct platform_device *pdev) > if (IS_ERR(cprman->regs)) > return PTR_ERR(cprman->regs); > > - cprman->osc_name = of_clk_get_parent_name(dev->of_node, 0); > - if (!cprman->osc_name) > + for (i = 0; i < ARRAY_SIZE(cprman_parent_names); i++) { > + cprman->real_parent_names[i] = > + of_clk_get_parent_name(dev->of_node, i); > + } Can we use of_clk_parent_fill() here? Or do we need to support holes in the parent array? If it's the latter please add a comment so we don't mistakenly change this later. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project