From patchwork Wed Oct 15 16:30:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatol Pomozov X-Patchwork-Id: 5086131 Return-Path: X-Original-To: patchwork-alsa-devel@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 EA49FC11AC for ; Wed, 15 Oct 2014 16:31:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2E2F220138 for ; Wed, 15 Oct 2014 16:31:20 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 0C43820115 for ; Wed, 15 Oct 2014 16:31:19 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id EC2FB2605F5; Wed, 15 Oct 2014 18:31:16 +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, NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 040E0260610; Wed, 15 Oct 2014 18:31:06 +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 19AB1260673; Wed, 15 Oct 2014 18:31:05 +0200 (CEST) Received: from mail-pd0-f201.google.com (mail-pd0-f201.google.com [209.85.192.201]) by alsa0.perex.cz (Postfix) with ESMTP id C33542605D9 for ; Wed, 15 Oct 2014 18:30:56 +0200 (CEST) Received: by mail-pd0-f201.google.com with SMTP id y10so271224pdj.4 for ; Wed, 15 Oct 2014 09:30:55 -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=KQVHF6nd4FQwa1ORDBsiPdnDdP+Qo3Zbtlx8N3sW9UA=; b=aqcGk0lUOwETfNl2cGVnsfMaHf8xiv3VXfnTh5wR6vOc2/gxdl1ialGU5yQNaiHP9j 5Ki1/fFXSeYkkXiyHhVF8YTcnv68YJIAYLVk250yyYvIO40icqa1V0AcznYWBcacXsKW qMD1+m0tZbHOkvPAM2b9NNRmyqk9fp6lXJfswiCxKgyvIMbMEbAr8eNu5y0WmdLrnkbg vdbynHVo62Q1ol7AFgCjujnpiP0mSvtrxCnP+dToxvQ5QGXDVyuFs9NZXrD9JJdIMst/ /sK7tDxS5lclJuU4j8jaCz5sIU33VBoSp8Flust83QHlYW5i42a+dA48kMwwwBXDOggn 7ZzA== X-Gm-Message-State: ALoCoQkjYjmkFnp+1gheBhFVjbSJYq9zkZgkGYmnuSAT05FUSvq0yUUpMxB6g+GfOMnxTnM7UXFGX2lKGOrKn5VuI/P88l+8kybuNfbXRyX3HfebhP4j1oegm0oJiPCwt0DIPyCPk+LJ9TeB29LseKkTKsqC4/+3Di3117eKxo0mMwadMbkZ/2o= X-Received: by 10.66.222.67 with SMTP id qk3mr9205223pac.20.1413390655140; Wed, 15 Oct 2014 09:30:55 -0700 (PDT) Received: from corpmail-nozzle1-1.hot.corp.google.com ([100.108.1.104]) by gmr-mx.google.com with ESMTPS id t28si984662yhb.4.2014.10.15.09.30.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Oct 2014 09:30:55 -0700 (PDT) Received: from anatol.mtv.corp.google.com ([172.22.64.197]) by corpmail-nozzle1-1.hot.corp.google.com with ESMTP id H1MZnwvm.1; Wed, 15 Oct 2014 09:30:55 -0700 Received: by anatol.mtv.corp.google.com (Postfix, from userid 67983) id 520031003B3; Wed, 15 Oct 2014 09:30:54 -0700 (PDT) From: Anatol Pomozov To: broonie@kernel.org Date: Wed, 15 Oct 2014 09:30:49 -0700 Message-Id: <1413390649-854-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 d1fc9a1..2f0d19f 100644 --- a/sound/soc/codecs/rt5677.c +++ b/sound/soc/codecs/rt5677.c @@ -3686,6 +3686,11 @@ static void rt5677_free_gpio(struct i2c_client *i2c) gpiochip_remove(&rt5677->gpio_chip); } #else +static void rt5677_gpio_config(struct rt5677_priv *rt5677, unsigned offset, + int value) +{ +} + static void rt5677_init_gpio(struct i2c_client *i2c) { }