From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-yw0-x244.google.com ([2607:f8b0:4002:c05::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1brPta-0003QA-D2 for barebox@lists.infradead.org; Tue, 04 Oct 2016 13:36:38 +0000 Received: by mail-yw0-x244.google.com with SMTP id u124so2331582ywg.1 for ; Tue, 04 Oct 2016 06:36:13 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20161004063853.5p7xulewpbuuacxv@pengutronix.de> References: <1475505657-898-1-git-send-email-andrew.smirnov@gmail.com> <1475505657-898-8-git-send-email-andrew.smirnov@gmail.com> <20161004063853.5p7xulewpbuuacxv@pengutronix.de> From: Andrey Smirnov Date: Tue, 4 Oct 2016 06:36:12 -0700 Message-ID: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 07/20] clk: Port of_clk_set_defautls() To: Sascha Hauer Cc: "barebox@lists.infradead.org" On Mon, Oct 3, 2016 at 11:38 PM, Sascha Hauer wrote: > On Mon, Oct 03, 2016 at 07:40:44AM -0700, Andrey Smirnov wrote: >> Port of_clk_set_defautls() from Linux kernel in order to support DT >> configurations that require it (e. g. Vybrid). > > s/of_clk_set_defautls/of_clk_set_defaults/ here and in the subject. > >> diff --git a/include/linux/clk/clk-conf.h b/include/linux/clk/clk-conf.h >> new file mode 100644 >> index 0000000..2c0a39e >> --- /dev/null >> +++ b/include/linux/clk/clk-conf.h >> @@ -0,0 +1,22 @@ >> +/* >> + * Copyright (C) 2014 Samsung Electronics Co., Ltd. >> + * Sylwester Nawrocki >> + * >> + * This program is free software; you can redistribute it and/or modify >> + * it under the terms of the GNU General Public License version 2 as >> + * published by the Free Software Foundation. >> + */ >> + >> +#include >> + >> +struct device_node; >> + >> +#if defined(CONFIG_OFTREE) && defined(CONFIG_COMMON_CLK) >> +int of_clk_set_defaults(struct device_node *node, bool clk_supplier); >> +#else >> +static inline int of_clk_set_defaults(struct device_node *node, >> + bool clk_supplier) >> +{ >> + return 0; >> +} >> +#endif > > We shouldn't need this static inline variant. The caller already exists for OF > enabled builds only. OK, will remove in v2. Thanks, Andrey _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox