Loading drivers/i2c/i2c-core.c +3 −3 Original line number Diff line number Diff line Loading @@ -1554,7 +1554,7 @@ static int __process_new_adapter(struct device_driver *d, void *data) static int i2c_register_adapter(struct i2c_adapter *adap) { int res = 0; int res = -EINVAL; /* Can't register until after driver model init */ if (WARN_ON(!is_registered)) { Loading @@ -1566,12 +1566,12 @@ static int i2c_register_adapter(struct i2c_adapter *adap) if (unlikely(adap->name[0] == '\0')) { pr_err("i2c-core: Attempt to register an adapter with " "no name!\n"); return -EINVAL; goto out_list; } if (unlikely(!adap->algo)) { pr_err("i2c-core: Attempt to register adapter '%s' with " "no algo!\n", adap->name); return -EINVAL; goto out_list; } if (!adap->lock_bus) { Loading Loading
drivers/i2c/i2c-core.c +3 −3 Original line number Diff line number Diff line Loading @@ -1554,7 +1554,7 @@ static int __process_new_adapter(struct device_driver *d, void *data) static int i2c_register_adapter(struct i2c_adapter *adap) { int res = 0; int res = -EINVAL; /* Can't register until after driver model init */ if (WARN_ON(!is_registered)) { Loading @@ -1566,12 +1566,12 @@ static int i2c_register_adapter(struct i2c_adapter *adap) if (unlikely(adap->name[0] == '\0')) { pr_err("i2c-core: Attempt to register an adapter with " "no name!\n"); return -EINVAL; goto out_list; } if (unlikely(!adap->algo)) { pr_err("i2c-core: Attempt to register adapter '%s' with " "no algo!\n", adap->name); return -EINVAL; goto out_list; } if (!adap->lock_bus) { Loading