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>
This commit is contained in:
@@ -141,11 +141,13 @@ static const struct i2c_device_id intel_soc_pmic_i2c_id[] = {
|
|||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(i2c, 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[] = {
|
static struct acpi_device_id intel_soc_pmic_acpi_match[] = {
|
||||||
{"INT33FD", (kernel_ulong_t)&intel_soc_pmic_config_crc},
|
{"INT33FD", (kernel_ulong_t)&intel_soc_pmic_config_crc},
|
||||||
{ },
|
{ },
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(acpi, intel_soc_pmic_acpi_match);
|
MODULE_DEVICE_TABLE(acpi, intel_soc_pmic_acpi_match);
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct i2c_driver intel_soc_pmic_i2c_driver = {
|
static struct i2c_driver intel_soc_pmic_i2c_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
|
Reference in New Issue
Block a user