summaryrefslogtreecommitdiff
path: root/drivers/i2c/i2c-acpi.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2014-09-16 03:28:16 +0400
committerBrian Norris <computersforpeace@gmail.com>2014-09-16 03:28:16 +0400
commit7622d4905a038961da6b1c6c3fe4be6c3dad7ef9 (patch)
treecce9f4bc0ef2de31cee8e06e2cd6358dd51fa9c5 /drivers/i2c/i2c-acpi.c
parent5b49ab3e03f68eb49db4bce6290e5707b7f6c6f3 (diff)
parent9e82bf014195d6f0054982c463575cdce24292be (diff)
downloadlinux-7622d4905a038961da6b1c6c3fe4be6c3dad7ef9.tar.xz
Merge tag 'v3.17-rc5' from upstream
Diffstat (limited to 'drivers/i2c/i2c-acpi.c')
-rw-r--r--drivers/i2c/i2c-acpi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/i2c/i2c-acpi.c b/drivers/i2c/i2c-acpi.c
index e8b61967334b..0dbc18c15c43 100644
--- a/drivers/i2c/i2c-acpi.c
+++ b/drivers/i2c/i2c-acpi.c
@@ -126,6 +126,7 @@ void acpi_i2c_register_devices(struct i2c_adapter *adap)
dev_warn(&adap->dev, "failed to enumerate I2C slaves\n");
}
+#ifdef CONFIG_ACPI_I2C_OPREGION
static int acpi_gsb_i2c_read_bytes(struct i2c_client *client,
u8 cmd, u8 *data, u8 data_len)
{
@@ -360,3 +361,4 @@ void acpi_i2c_remove_space_handler(struct i2c_adapter *adapter)
acpi_bus_detach_private_data(handle);
}
+#endif