diff options
Diffstat (limited to 'drivers/i2c/i2c-core.c')
-rw-r--r-- | drivers/i2c/i2c-core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 7c7f4b856bad..66aa83b99383 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c | |||
@@ -42,6 +42,7 @@ | |||
42 | #include <linux/of.h> | 42 | #include <linux/of.h> |
43 | #include <linux/of_device.h> | 43 | #include <linux/of_device.h> |
44 | #include <linux/of_irq.h> | 44 | #include <linux/of_irq.h> |
45 | #include <linux/clk/clk-conf.h> | ||
45 | #include <linux/completion.h> | 46 | #include <linux/completion.h> |
46 | #include <linux/hardirq.h> | 47 | #include <linux/hardirq.h> |
47 | #include <linux/irqflags.h> | 48 | #include <linux/irqflags.h> |
@@ -274,6 +275,10 @@ static int i2c_device_probe(struct device *dev) | |||
274 | client->flags & I2C_CLIENT_WAKE); | 275 | client->flags & I2C_CLIENT_WAKE); |
275 | dev_dbg(dev, "probe\n"); | 276 | dev_dbg(dev, "probe\n"); |
276 | 277 | ||
278 | status = of_clk_set_defaults(dev->of_node, false); | ||
279 | if (status < 0) | ||
280 | return status; | ||
281 | |||
277 | acpi_dev_pm_attach(&client->dev, true); | 282 | acpi_dev_pm_attach(&client->dev, true); |
278 | status = driver->probe(client, i2c_match_id(driver->id_table, client)); | 283 | status = driver->probe(client, i2c_match_id(driver->id_table, client)); |
279 | if (status) | 284 | if (status) |