From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753838AbcHPNfo (ORCPT ); Tue, 16 Aug 2016 09:35:44 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:36259 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753439AbcHPNf0 (ORCPT ); Tue, 16 Aug 2016 09:35:26 -0400 Subject: Re: [PATCH 1/3] clk: meson: Add GXBB AO Clock and Reset controller driver To: Paul Gortmaker References: <1470734008-18849-1-git-send-email-narmstrong@baylibre.com> <1470734008-18849-2-git-send-email-narmstrong@baylibre.com> Cc: "linux-arm-kernel@lists.infradead.org" , linux-amlogic@lists.infradead.org, LKML , linux-clk@vger.kernel.org, sboyd@codeaurora.org, mturquette@baylibre.com From: Neil Armstrong Organization: Baylibre Message-ID: <5529118a-63f0-cb54-f6a4-305603da168f@baylibre.com> Date: Tue, 16 Aug 2016 15:35:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/15/2016 02:08 AM, Paul Gortmaker wrote: > On Tue, Aug 9, 2016 at 5:13 AM, Neil Armstrong wrote: >> Adds a Clock and Reset controller driver for the Always-On part >> of the Amlogic Meson GXBB SoC. >> >> It exports paired Clocks and Resets lines that will be used by >> peripherals in the Always-On subsystem. > > [...] > >> +static const struct of_device_id gxbb_aoclkc_match_table[] = { >> + { .compatible = "amlogic,gxbb-aoclkc" }, >> + { } >> +}; >> +MODULE_DEVICE_TABLE(of, gxbb_aoclkc_match_table); >> + >> +static struct platform_driver gxbb_aoclkc_driver = { >> + .probe = gxbb_aoclkc_probe, >> + .driver = { >> + .name = "gxbb-aoclkc", >> + .of_match_table = gxbb_aoclkc_match_table, >> + }, >> +}; >> + >> +module_platform_driver(gxbb_aoclkc_driver); >> + >> +MODULE_DESCRIPTION("AmLogic Meson GXBB AO Clock Controller Driver"); >> +MODULE_LICENSE("Dual BSD/GPL"); >> +MODULE_ALIAS("platform:gxbb-aoclkc"); >> +MODULE_AUTHOR("Neil Armstrong "); > > Since this driver is controlled by a bool Kconfig, you can dump the module.h > include and all the MODULE_ tags above. > > Or, if there is a genuine use case for it to be modular, then make it tristate? > > Thanks, > Paul. > It will be non-modular. Thanks, Neil