From patchwork Wed Jul 2 15:28:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 32994 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f198.google.com (mail-yk0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1DB3C20560 for ; Wed, 2 Jul 2014 15:29:07 +0000 (UTC) Received: by mail-yk0-f198.google.com with SMTP id 9sf19505677ykp.1 for ; Wed, 02 Jul 2014 08:29:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=JU+yI5QCkCG3xYoZjyGU32zVg0DkaRewVCtIJxxPISQ=; b=iC1CxXTIHVLeQZr/B3wVWgHd/DkdhTT4lHIBJpq5QkBzzsMpCrz39P7dq4omc/LAtd etQPWw1h0uKfkqZ7FULjxxVKKPsRRWSi/144fLLTUdtGN/blQRmRPG/C4rBnIeH3F2xV sWY9TUdi4I2v0F+2iefONpYvv6rAjDV6w5QXb3JyPN7/kXcz4lFwrgoYGZYhHp7M8der Lm3cJUBcsyuvtdl2DEPpjOtmMfVpVHPiyVfKOlg2urGvlKyuAtCycW7D7pNVpXJEVHuB JhcSRVrIenfM5cl/d1qfl4kqeDWpIsupKO0tUsN/SBXReI8cmROUCUXse/+kU/xko5ox uOeA== X-Gm-Message-State: ALoCoQmTzaUWwKkIHsLZqKccWCAJeUPjw2lct+Lh4vBz3ojRRGanDVtKssI1ncp8pIecTiq0y+HO X-Received: by 10.58.199.135 with SMTP id jk7mr29151359vec.22.1404314946942; Wed, 02 Jul 2014 08:29:06 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.30.36 with SMTP id c33ls83860qgc.72.gmail; Wed, 02 Jul 2014 08:29:06 -0700 (PDT) X-Received: by 10.220.92.193 with SMTP id s1mr1070773vcm.34.1404314946742; Wed, 02 Jul 2014 08:29:06 -0700 (PDT) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id cy11si13059776vec.49.2014.07.02.08.29.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Jul 2014 08:29:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.169 as permitted sender) client-ip=209.85.128.169; Received: by mail-ve0-f169.google.com with SMTP id pa12so11346066veb.14 for ; Wed, 02 Jul 2014 08:29:06 -0700 (PDT) X-Received: by 10.220.53.72 with SMTP id l8mr50410286vcg.16.1404314946664; Wed, 02 Jul 2014 08:29:06 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp301878vcb; Wed, 2 Jul 2014 08:29:06 -0700 (PDT) X-Received: by 10.43.53.199 with SMTP id vr7mr3380718icb.70.1404314946127; Wed, 02 Jul 2014 08:29:06 -0700 (PDT) Received: from mail-ig0-f179.google.com (mail-ig0-f179.google.com [209.85.213.179]) by mx.google.com with ESMTPS id d4si16726596igc.38.2014.07.02.08.29.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Jul 2014 08:29:06 -0700 (PDT) Received-SPF: pass (google.com: domain of lee.jones@linaro.org designates 209.85.213.179 as permitted sender) client-ip=209.85.213.179; Received: by mail-ig0-f179.google.com with SMTP id uq10so390173igb.6 for ; Wed, 02 Jul 2014 08:29:05 -0700 (PDT) X-Received: by 10.42.107.68 with SMTP id c4mr4724754icp.60.1404314945907; Wed, 02 Jul 2014 08:29:05 -0700 (PDT) Received: from localhost.localdomain (host109-148-235-194.range109-148.btcentralplus.com. [109.148.235.194]) by mx.google.com with ESMTPSA id d4sm23997781igc.5.2014.07.02.08.29.03 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Jul 2014 08:29:05 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: sameo@linux.intel.com, linus.walleij@linaro.org, Lee Jones Subject: [PATCH 03/12] mfd: intel_soc_pmic: Rid compiler working for unused ACPI match table Date: Wed, 2 Jul 2014 16:28:35 +0100 Message-Id: <1404314924-23564-4-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1404314924-23564-1-git-send-email-lee.jones@linaro.org> References: <1404314924-23564-1-git-send-email-lee.jones@linaro.org> MIME-Version: 1.0 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.169 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , If CONIFG_ACPI is not enabled we receive the following warning: drivers/mfd/intel_soc_pmic_core.c:144:30: warning: ‘intel_soc_pmic_acpi_match’ defined but not used This patch rids it. Signed-off-by: Lee Jones --- drivers/mfd/intel_soc_pmic_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/intel_soc_pmic_core.c b/drivers/mfd/intel_soc_pmic_core.c index cddbf5a..2720922 100644 --- a/drivers/mfd/intel_soc_pmic_core.c +++ b/drivers/mfd/intel_soc_pmic_core.c @@ -141,11 +141,13 @@ static const struct i2c_device_id intel_soc_pmic_i2c_id[] = { }; MODULE_DEVICE_TABLE(i2c, intel_soc_pmic_i2c_id); +#if defined(CONFIG_ACPI) static struct acpi_device_id intel_soc_pmic_acpi_match[] = { {"INT33FD", (kernel_ulong_t)&intel_soc_pmic_config_crc}, { }, }; MODULE_DEVICE_TABLE(acpi, intel_soc_pmic_acpi_match); +#endif static struct i2c_driver intel_soc_pmic_i2c_driver = { .driver = {