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: 366410 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 734821400B7 for ; Thu, 3 Jul 2014 01:38:06 +1000 (EST) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X2MZt-0003IJ-CG; Wed, 02 Jul 2014 15:36:09 +0000 Received: from mail-ig0-f175.google.com ([209.85.213.175]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X2MZp-0002sR-Bd for linux-arm-kernel@lists.infradead.org; Wed, 02 Jul 2014 15:36:05 +0000 Received: by mail-ig0-f175.google.com with SMTP id h3so6823896igd.2 for ; Wed, 02 Jul 2014 08:35:42 -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:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=JU+yI5QCkCG3xYoZjyGU32zVg0DkaRewVCtIJxxPISQ=; b=RYSEc/0jYeeg/lCg4692QLVoHTCuhl9KlMFFsOkc8Mj1rawxmwzzBUFgO7l+TqJsts vld+jRhg1J4aSDX2F4qNnjjrSedXVKzZVHTNEOY0U2/nZq3OLQ2mLT9ppTOBleEwOwik SY1PBm7zKj166rpeg/ufLuk8y+J2NNVC522QfEW0P5Lq4Ig6iYK3Yk4Ecr8cXd+zgQ6m MyLuDjFWBuDzAD9I4uf0hrFwVQHDq8mS6IV3FpKPOkAi+R++j+JQp89UNG4Tx34b+3II nbnSQnVB1QuSd6TmC4mzB9roOyXpM0XRG4QvXAmvuLzuXPxIepLeJts+zkUJyt9U9YwX CyIQ== X-Gm-Message-State: ALoCoQletGQG9F5bDpGimkJkDSDwXIr1fa2tCBXIJqA8I/vRfAubNtng0VLF9brZ0Sw4CNAD4G/b 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140702_083605_432211_FBED2E5F X-CRM114-Status: GOOD ( 11.42 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.175 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 2.5 SUSPICIOUS_RECIPS Similar addresses in recipient list -2.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.213.175 listed in wl.mailspike.net] Cc: linus.walleij@linaro.org, Lee Jones , sameo@linux.intel.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org 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 = {