Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932506AbbHKVRt (ORCPT ); Tue, 11 Aug 2015 17:17:49 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:34124 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752992AbbHKVRs convert rfc822-to-8bit (ORCPT ); Tue, 11 Aug 2015 17:17:48 -0400 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Eric Anholt , linux-arm-kernel@lists.infradead.org From: Michael Turquette In-Reply-To: <1437420787-32137-3-git-send-email-eric@anholt.net> Cc: linux-rpi-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "Stephen Warren" , "Lee Jones" , linux-clk@vger.kernel.org, "Stephen Boyd" , "Eric Anholt" References: <1437420787-32137-1-git-send-email-eric@anholt.net> <1437420787-32137-3-git-send-email-eric@anholt.net> Message-ID: <20150811211733.31346.11122@quantum> User-Agent: alot/0.3.5 Subject: Re: [PATCH v4 2/8] clk: Add a Raspberry Pi-specific clock driver. Date: Tue, 11 Aug 2015 14:17:33 -0700 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 993 Lines: 30 Hi Eric, Quoting Eric Anholt (2015-07-20 12:33:01) > +void __init rpi_firmware_init_clock_provider(struct device_node *node) > +{ > + /* We delay construction of our struct clks until get time, > + * because we need to be able to return -EPROBE_DEFER if the > + * firmware driver isn't up yet. clk core doesn't support > + * re-probing on -EPROBE_DEFER, but callers of clk_get can. > + */ > + of_clk_add_provider(node, rpi_firmware_delayed_get_clk, node); > +} > + > +CLK_OF_DECLARE(rpi_firmware_clocks, "raspberrypi,bcm2835-firmware-clocks", > + rpi_firmware_init_clock_provider); Do you require CLK_OF_DECLARE here? Could this be a platform driver instead? Regards, Mike > -- > 2.1.4 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/