diff options
author | Lee Jones <lee.jones@linaro.org> | 2014-07-02 06:30:12 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-07-09 11:37:54 -0400 |
commit | 52764fd9ab5e1fa0d7e159ce6147d0288be595a7 (patch) | |
tree | bfeb229967a6fa600c256129608d63f36feadf3b | |
parent | c3f27a26b477baf8e32848731e860618e5f48b58 (diff) |
mfd: intel_soc_pmic: Rid compiler working for unused ACPI match table
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 <lee.jones@linaro.org>
-rw-r--r-- | drivers/mfd/intel_soc_pmic_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/intel_soc_pmic_core.c b/drivers/mfd/intel_soc_pmic_core.c index cddbf5a72f89..2720922f90b4 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[] = { | |||
141 | }; | 141 | }; |
142 | MODULE_DEVICE_TABLE(i2c, intel_soc_pmic_i2c_id); | 142 | MODULE_DEVICE_TABLE(i2c, intel_soc_pmic_i2c_id); |
143 | 143 | ||
144 | #if defined(CONFIG_ACPI) | ||
144 | static struct acpi_device_id intel_soc_pmic_acpi_match[] = { | 145 | static struct acpi_device_id intel_soc_pmic_acpi_match[] = { |
145 | {"INT33FD", (kernel_ulong_t)&intel_soc_pmic_config_crc}, | 146 | {"INT33FD", (kernel_ulong_t)&intel_soc_pmic_config_crc}, |
146 | { }, | 147 | { }, |
147 | }; | 148 | }; |
148 | MODULE_DEVICE_TABLE(acpi, intel_soc_pmic_acpi_match); | 149 | MODULE_DEVICE_TABLE(acpi, intel_soc_pmic_acpi_match); |
150 | #endif | ||
149 | 151 | ||
150 | static struct i2c_driver intel_soc_pmic_i2c_driver = { | 152 | static struct i2c_driver intel_soc_pmic_i2c_driver = { |
151 | .driver = { | 153 | .driver = { |