From patchwork Thu Oct 16 16:40:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatol Pomozov X-Patchwork-Id: 5092601 Return-Path: X-Original-To: patchwork-alsa-devel@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 3222C9F30B for ; Thu, 16 Oct 2014 16:41:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4860E201CD for ; Thu, 16 Oct 2014 16:41:29 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 02FDE20034 for ; Thu, 16 Oct 2014 16:41:27 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id C189F26065C; Thu, 16 Oct 2014 18:41:25 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 7EC842605E4; Thu, 16 Oct 2014 18:41:15 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 742192605F1; Thu, 16 Oct 2014 18:41:14 +0200 (CEST) Received: from mail-qc0-f201.google.com (mail-qc0-f201.google.com [209.85.216.201]) by alsa0.perex.cz (Postfix) with ESMTP id 64A442605DB for ; Thu, 16 Oct 2014 18:41:07 +0200 (CEST) Received: by mail-qc0-f201.google.com with SMTP id m20so300243qcx.2 for ; Thu, 16 Oct 2014 09:41:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=pqQba2chO1y/GwwhauaMU+stGxSa1DXYTH3L2IdMA1o=; b=K0W3c14v9y8CYZk/AoyCNYfRAWbGS99QNo50ZCDGp3ALUs0UVObjDFLyKPw2Sh214o FmSb0oiS+EoGUQSAofby3LlmiF53Oj25BzVL8m+VorKzjlBKjQmh7m2Br1PvvgGhogNb 6SqAMIz42C4AsP9ODNR7q1+fW1kEJ9oUbFNbKLe3dTsKL27t0I6jxfH0Sd6PInXdFrLi F9rhczw/Ig9AMbnDxqaM4z7DNvrjZdM9cf0HMIsUFYsyPjcMQQmHbqRITRENJ1E8b32N LDSppZ8SHXA/pefssd9Op9auDwphGmaomu8CeqmEi4xwMERHvueo2ekjZO5CnDEHBa3b zn7A== X-Gm-Message-State: ALoCoQnS/wF/Pfs2Qz1v+MbUesd2CbsEUBZrHnjXH7fp+BmJraF8F/TseuJqBPU3HSfTdgVIKxF+uKSpW6cpPTleMiWKKUtyGqhF+glSaadZZAXc8psFnooRRGWpYWAJROOiL7qfjWb5sANOxPe4bbeiVPRQQamPZhWTVesQIdpssJTm3zdb6vA= X-Received: by 10.236.201.74 with SMTP id a50mr1666620yho.20.1413477664251; Thu, 16 Oct 2014 09:41:04 -0700 (PDT) Received: from corpmail-nozzle1-2.hot.corp.google.com ([100.108.1.103]) by gmr-mx.google.com with ESMTPS id s23si993149yhf.0.2014.10.16.09.41.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Oct 2014 09:41:04 -0700 (PDT) Received: from anatol.mtv.corp.google.com ([172.22.64.197]) by corpmail-nozzle1-2.hot.corp.google.com with ESMTP id LZsKjACO.1; Thu, 16 Oct 2014 09:41:04 -0700 Received: by anatol.mtv.corp.google.com (Postfix, from userid 67983) id 7A631100230; Thu, 16 Oct 2014 09:41:03 -0700 (PDT) From: Anatol Pomozov To: broonie@kernel.org Date: Thu, 16 Oct 2014 09:40:58 -0700 Message-Id: <1413477658-35049-1-git-send-email-anatol.pomozov@gmail.com> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 Cc: oder_chiou@realtek.com, alsa-devel@alsa-project.org, Anatol Pomozov Subject: [alsa-devel] [PATCH] ASoC: rt5677: fix warnings when kernel compiled without GPIOLIB support X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Anatol Pomozov --- sound/soc/codecs/rt5677.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/soc/codecs/rt5677.c b/sound/soc/codecs/rt5677.c index 3b63772..f6df276 100644 --- a/sound/soc/codecs/rt5677.c +++ b/sound/soc/codecs/rt5677.c @@ -3649,6 +3649,11 @@ static void rt5677_free_gpio(struct i2c_client *i2c) dev_err(&i2c->dev, "Failed to remove GPIOs: %d\n", ret); } #else +static void rt5677_gpio_config(struct rt5677_priv *rt5677, unsigned offset, + int value) +{ +} + static void rt5677_init_gpio(struct i2c_client *i2c) { }