From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755418Ab3KVKuZ (ORCPT ); Fri, 22 Nov 2013 05:50:25 -0500 Received: from mga09.intel.com ([134.134.136.24]:38455 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751497Ab3KVKuW (ORCPT ); Fri, 22 Nov 2013 05:50:22 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.93,751,1378882800"; d="scan'208";a="439793573" Date: Fri, 22 Nov 2013 12:50:16 +0200 From: Heikki Krogerus To: Andy Shevchenko Cc: Mika Westerberg , linux-acpi@vger.kernel.org, "Rafael J. Wysocki" , Linus Walleij , Chris Ball , Johannes Berg , Rhyland Klein , Adrian Hunter , Alexandre Courbot , Mathias Nyman , Rob Landley , linux-gpio@vger.kernel.org, "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 1/5] net: rfkill: gpio: convert to descriptor-based GPIO interface Message-ID: <20131122105016.GA8670@xps8300> References: <1385045153-25160-1-git-send-email-mika.westerberg@linux.intel.com> <1385045153-25160-2-git-send-email-mika.westerberg@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Hi Andy, On Thu, Nov 21, 2013 at 05:32:28PM +0200, Andy Shevchenko wrote: > > + /* Make sure at-least one of the GPIO is defined and that > > + * a name is specified for this instance > > + */ > > + if ((!rfkill->reset_gpio && !rfkill->shutdown_gpio) || !rfkill->name) { > > + pr_warn("%s: invalid platform data\n", __func__); > > + return -EINVAL; > > + } > > + > > + if (pdata && pdata->gpio_runtime_setup) { > > + ret = pdata->gpio_runtime_setup(pdev); > > if (ret) { > > - pr_warn("%s: failed to get shutdown gpio.\n", __func__); > > + pr_warn("%s: can't set up gpio\n", __func__); > > Could you use dev_* family of functions to print messages? OK, I'll change them. Thanks! -- heikki