From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrew@lunn.ch (Andrew Lunn) Date: Sun, 4 Mar 2012 15:35:02 +0100 Subject: [PATCH v5 4/4] clk: basic clock hardware types In-Reply-To: <1330763341-3437-5-git-send-email-mturquette@linaro.org> References: <1330763341-3437-1-git-send-email-mturquette@linaro.org> <1330763341-3437-5-git-send-email-mturquette@linaro.org> Message-ID: <20120304143502.GC11546@lunn.ch> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org > +#define DEFINE_CLK_GATE(_name, _parent_name, _parent_ptr, \ > + _flags, _reg, _bit_idx, \ > + _gate_flags, _lock) \ > + static struct clk _name; \ > + static char *_name##_parent_names[] = { \ > + _parent_name, \ > + }; \ > + static struct clk *_name##_parents[] = { \ > + _parent_ptr, \ > + }; \ > + static struct clk_gate _name##_hw = { \ > + .hw = { \ > + .clk = &_name, \ > + }, \ > + .reg = _reg, \ > + .bit_idx = _bit_idx, \ > + .flags = _gate_flags \ > + .lock = _lock, \ > + }; \ > + static struct clk _name = { \ > + .name = #_name, \ > + .ops = &clk_gate_ops, \ > + .hw = &_name##_hw.hw, \ > + .parent_names = _name##_parent_names, \ > + .num_parents = \ > + ARRAY_SIZE(_name##parent_names), \ Hi Mike This should be _name##_parent_names, i.e. you are missing a _. With this and the previous change, i get something which at least compiles... Andrew From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754477Ab2CDOfQ (ORCPT ); Sun, 4 Mar 2012 09:35:16 -0500 Received: from londo.lunn.ch ([80.238.139.98]:52430 "EHLO londo.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753319Ab2CDOfO (ORCPT ); Sun, 4 Mar 2012 09:35:14 -0500 Date: Sun, 4 Mar 2012 15:35:02 +0100 From: Andrew Lunn To: Mike Turquette Cc: Russell King , patches@linaro.org, linaro-dev@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mike Turquette , Jeremy Kerr , Thomas Gleixner , Arnd Bergman , Paul Walmsley , Shawn Guo , Sascha Hauer , Jamie Iles , Richard Zhao , Saravana Kannan , Magnus Damm , Rob Herring , Mark Brown , Linus Walleij , Stephen Boyd , Amit Kucheria , Deepak Saxena , Grant Likely , Andrew Lunn Subject: Re: [PATCH v5 4/4] clk: basic clock hardware types Message-ID: <20120304143502.GC11546@lunn.ch> References: <1330763341-3437-1-git-send-email-mturquette@linaro.org> <1330763341-3437-5-git-send-email-mturquette@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1330763341-3437-5-git-send-email-mturquette@linaro.org> 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 > +#define DEFINE_CLK_GATE(_name, _parent_name, _parent_ptr, \ > + _flags, _reg, _bit_idx, \ > + _gate_flags, _lock) \ > + static struct clk _name; \ > + static char *_name##_parent_names[] = { \ > + _parent_name, \ > + }; \ > + static struct clk *_name##_parents[] = { \ > + _parent_ptr, \ > + }; \ > + static struct clk_gate _name##_hw = { \ > + .hw = { \ > + .clk = &_name, \ > + }, \ > + .reg = _reg, \ > + .bit_idx = _bit_idx, \ > + .flags = _gate_flags \ > + .lock = _lock, \ > + }; \ > + static struct clk _name = { \ > + .name = #_name, \ > + .ops = &clk_gate_ops, \ > + .hw = &_name##_hw.hw, \ > + .parent_names = _name##_parent_names, \ > + .num_parents = \ > + ARRAY_SIZE(_name##parent_names), \ Hi Mike This should be _name##_parent_names, i.e. you are missing a _. With this and the previous change, i get something which at least compiles... Andrew