From patchwork Thu Feb 13 03:39:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 3642421 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E670B9F334 for ; Thu, 13 Feb 2014 03:39:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1B36D201BA for ; Thu, 13 Feb 2014 03:39:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 43005201B4 for ; Thu, 13 Feb 2014 03:39:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752594AbaBMDjK (ORCPT ); Wed, 12 Feb 2014 22:39:10 -0500 Received: from mail-pb0-f51.google.com ([209.85.160.51]:44169 "EHLO mail-pb0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751976AbaBMDjJ (ORCPT ); Wed, 12 Feb 2014 22:39:09 -0500 Received: by mail-pb0-f51.google.com with SMTP id un15so10156704pbc.24 for ; Wed, 12 Feb 2014 19:39:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:subject:user-agent:to:cc:mime-version :content-type; bh=dxvqaXVohwKUPnKyuqN+fbsSwV84bnTBMRo2Fh6yPM8=; b=x19LfdCg+RCNEMSTBmqbOt9oWtDmxAmwMGhS2KHxvTOvDzbYV/DQFc2ReCXD4+fbXI /U/5ALh8zc+dFkDbC/aJt/uHmcIpKG9+kfKwNnexqQHR4gZVLobw2yiQi12okNUvABrm cHkaxPpeck2hs/Fwi2aSFgl3jJ9rGy7Jk/yz83ZyreC9OGh0oStREqklU1NZwGEF8py7 8Qoj03mgnd8CdRYKzzJ6XQg12DnGB7fx3phb28n9yhsDAC5gTcRUt24VJeD+TirhhryI jpkKwsaAPTWRvygZ27OxE2dqmzABnjCPUZH/aDDoeY5DxxTW7gx1AddJVUSJwLUCzrs8 ffWQ== X-Received: by 10.66.226.46 with SMTP id rp14mr43446142pac.133.1392262748562; Wed, 12 Feb 2014 19:39:08 -0800 (PST) Received: from morimoto-Dell-XPS420.gmail.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id n6sm1243280pbj.22.2014.02.12.19.39.06 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 12 Feb 2014 19:39:07 -0800 (PST) Date: Wed, 12 Feb 2014 19:39:07 -0800 (PST) Message-ID: <87iosjd6lj.wl%kuninori.morimoto.gx@gmail.com> From: Kuninori Morimoto Subject: [PATCH] regulator: gpio: reborn necessary prop User-Agent: Wanderlust/2.14.0 Emacs/23.3 Mule/6.0 To: Mark Brown Cc: Liam Girdwood , Lee Jones , Simon , Magnus , Linux-SH , linux-kernel@vger.kernel.org MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto 934624d6e9f0b3d41557c4105c286e8daeaadb4e (regulator: gpio-regulator: do not open-code counting and access of dt array elements) removed struct property *prop from of_get_gpio_regulator_config() but, it is still used on 0094050d783bbadffe83effef11a0bda901153ce (regulator: gpio: add gpios-status for DT) Compile will fail without this patch gpio-regulator.c: In function 'of_get_gpio_regulator_config': gpio-regulator.c:174:2: error: 'prop' undeclared (first use in this function) gpio-regulator.c:174:2: note: each undeclared identifier is reported \ only once for each function it appears in Signed-off-by: Kuninori Morimoto --- This is for latest mark-regulator/topic/gpio branch drivers/regulator/gpio-regulator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/gpio-regulator.c b/drivers/regulator/gpio-regulator.c index 9fd5561..20248c1 100644 --- a/drivers/regulator/gpio-regulator.c +++ b/drivers/regulator/gpio-regulator.c @@ -136,6 +136,7 @@ static struct gpio_regulator_config * of_get_gpio_regulator_config(struct device *dev, struct device_node *np) { struct gpio_regulator_config *config; + struct property *prop; const char *regtype; int proplen, gpio, i; int ret;