Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Upgrade to 4.4.50-rt62
[kvmfornfv.git]
/
kernel
/
drivers
/
i2c
/
i2c-core.c
diff --git
a/kernel/drivers/i2c/i2c-core.c
b/kernel/drivers/i2c/i2c-core.c
index
ba8eb08
..
e458741
100644
(file)
--- a/
kernel/drivers/i2c/i2c-core.c
+++ b/
kernel/drivers/i2c/i2c-core.c
@@
-1400,7
+1400,7
@@
static struct i2c_client *of_i2c_register_device(struct i2c_adapter *adap,
if (i2c_check_addr_validity(addr, info.flags)) {
dev_err(&adap->dev, "of_i2c: invalid addr=%x on %s\n",
if (i2c_check_addr_validity(addr, info.flags)) {
dev_err(&adap->dev, "of_i2c: invalid addr=%x on %s\n",
-
info.
addr, node->full_name);
+ addr, node->full_name);
return ERR_PTR(-EINVAL);
}
return ERR_PTR(-EINVAL);
}
@@
-1876,6
+1876,7
@@
int i2c_register_driver(struct module *owner, struct i2c_driver *driver)
/* add the driver to the list of i2c drivers in the driver core */
driver->driver.owner = owner;
driver->driver.bus = &i2c_bus_type;
/* add the driver to the list of i2c drivers in the driver core */
driver->driver.owner = owner;
driver->driver.bus = &i2c_bus_type;
+ INIT_LIST_HEAD(&driver->clients);
/* When registration returns, the driver core
* will have called probe() for all matching-but-unbound devices.
/* When registration returns, the driver core
* will have called probe() for all matching-but-unbound devices.
@@
-1886,7
+1887,6
@@
int i2c_register_driver(struct module *owner, struct i2c_driver *driver)
pr_debug("i2c-core: driver [%s] registered\n", driver->driver.name);
pr_debug("i2c-core: driver [%s] registered\n", driver->driver.name);
- INIT_LIST_HEAD(&driver->clients);
/* Walk the adapters that are already present */
i2c_for_each_dev(driver, __process_new_driver);
/* Walk the adapters that are already present */
i2c_for_each_dev(driver, __process_new_driver);