Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752456AbaBLB1L (ORCPT ); Tue, 11 Feb 2014 20:27:11 -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 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") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; } } -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/