From patchwork Wed Feb 12 01:27:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 3633611 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8FF8DBF13A for ; Wed, 12 Feb 2014 01:27:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1799D20103 for ; Wed, 12 Feb 2014 01:27:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 38B4A201FA for ; Wed, 12 Feb 2014 01:27:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751818AbaBLB1K (ORCPT ); Tue, 11 Feb 2014 20:27:10 -0500 Received: from mail-pd0-f171.google.com ([209.85.192.171]:64513 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750978AbaBLB1J (ORCPT ); Tue, 11 Feb 2014 20:27:09 -0500 Received: by mail-pd0-f171.google.com with SMTP id g10so8303715pdj.2 for ; Tue, 11 Feb 2014 17:27:09 -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:in-reply-to :references:mime-version:content-type; bh=Uwbt88Jz7ZvyVVTyO9RemT76uyMKEGeq1QFypbqnkXU=; b=utDRDVDaEKwI9ACW8sGcdzUymfVgbRajtW7Igf2m2X3MuUytDwemxV0UMjyLPo9xbf YywSpqPUeO7t8/IKXEi+50q0FBTafTXlgMEyXfIWH3Q4YYqXxfndcZuPsTPNaqcRycO4 gk4WDNQ/LPtfmdkQ3butSvGvR4qYvl1B25kMPk6wc3FDTpFOLY3f17meNdf5NTlSzFsa zAX2ZeTya15lZUVY6cftR0VgbG0ex3JctAmOKBrs6AJL9+FE6aOfnIbDMscFenbxXbQS KfG2P2/gMJL96kEoEL31jX6CLEfDisr0zzkEdwZx2Ivk34GtDfcaDgb0jTsyPmEmc3hf v4Cg== X-Received: by 10.66.149.37 with SMTP id tx5mr35634684pab.81.1392168429229; Tue, 11 Feb 2014 17:27:09 -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 fk4sm148109270pab.23.2014.02.11.17.27.06 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 11 Feb 2014 17:27:08 -0800 (PST) Date: Tue, 11 Feb 2014 17:27:08 -0800 (PST) Message-ID: <87iosl9l3q.wl%kuninori.morimoto.gx@gmail.com> From: Kuninori Morimoto Subject: [PATCH 1/2] regulator: gpio: print warning if gpios <-> gpios-states mismatch on DT 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 In-Reply-To: <20140204184327.GS22609@sirena.org.uk> References: <87eh3o7mfc.wl%kuninori.morimoto.gx@gmail.com> <20140204184327.GS22609@sirena.org.uk> 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 Signed-off-by: Kuninori Morimoto --- drivers/regulator/gpio-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/gpio-regulator.c b/drivers/regulator/gpio-regulator.c index ac3a8c7..5491cee 100644 --- a/drivers/regulator/gpio-regulator.c +++ b/drivers/regulator/gpio-regulator.c @@ -176,7 +176,7 @@ of_get_gpio_regulator_config(struct device *dev, struct device_node *np) if (prop) { proplen = prop->length / sizeof(int); if (proplen != config->nr_gpios) { - /* gpios <-> gpios-states mismatch */ + dev_warn(dev, "gpios <-> gpios-states mismatch\n"); prop = NULL; } }