aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/platform/chrome/chromeos_laptop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/platform/chrome/chromeos_laptop.c b/drivers/platform/chrome/chromeos_laptop.c
index 37fa570a7636..a53fe76de5d1 100644
--- a/drivers/platform/chrome/chromeos_laptop.c
+++ b/drivers/platform/chrome/chromeos_laptop.c
@@ -187,6 +187,7 @@ static int __find_i2c_adap(struct device *dev, void *data)
187 struct i2c_lookup *lookup = data; 187 struct i2c_lookup *lookup = data;
188 static const char *prefix = "i2c-"; 188 static const char *prefix = "i2c-";
189 struct i2c_adapter *adapter; 189 struct i2c_adapter *adapter;
190
190 if (strncmp(dev_name(dev), prefix, strlen(prefix)) != 0) 191 if (strncmp(dev_name(dev), prefix, strlen(prefix)) != 0)
191 return 0; 192 return 0;
192 adapter = to_i2c_adapter(dev); 193 adapter = to_i2c_adapter(dev);
@@ -248,6 +249,7 @@ static struct i2c_client *add_i2c_device(const char *name,
248 struct i2c_board_info *info) 249 struct i2c_board_info *info)
249{ 250{
250 const unsigned short addr_list[] = { info->addr, I2C_CLIENT_END }; 251 const unsigned short addr_list[] = { info->addr, I2C_CLIENT_END };
252
251 return __add_probed_i2c_device(name, 253 return __add_probed_i2c_device(name,
252 find_i2c_adapter_num(type), 254 find_i2c_adapter_num(type),
253 info, 255 info,
@@ -542,6 +544,7 @@ static struct platform_driver cros_platform_driver = {
542static int __init chromeos_laptop_init(void) 544static int __init chromeos_laptop_init(void)
543{ 545{
544 int ret; 546 int ret;
547
545 if (!dmi_check_system(chromeos_laptop_dmi_table)) { 548 if (!dmi_check_system(chromeos_laptop_dmi_table)) {
546 pr_debug("%s unsupported system.\n", __func__); 549 pr_debug("%s unsupported system.\n", __func__);
547 return -ENODEV; 550 return -ENODEV;