diff options
| author | Tejun Heo <tj@kernel.org> | 2016-05-09 19:34:39 +0300 | 
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2016-05-09 19:34:39 +0300 | 
| commit | 698f6700a6f19ba4550a722eaacf9f9d212b3fd9 (patch) | |
| tree | ff63c9a23fe47870df8788ff5e7d9a552f6d4ed1 /drivers/i2c/i2c-core.c | |
| parent | 7780081c1f04a4ea31331b5579ca010cc1f26c74 (diff) | |
| parent | 13f307711b127d30fcf333a04365a217baf9ca2b (diff) | |
| download | linux-698f6700a6f19ba4550a722eaacf9f9d212b3fd9.tar.xz | |
Merge branch '4.7/scsi-queue' of git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi into for-4.7-zac
Pulling in the dependencies for further ZAC changes.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/i2c/i2c-core.c')
| -rw-r--r-- | drivers/i2c/i2c-core.c | 10 | 
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 0f2f8484e8ec..e584d88ee337 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c @@ -525,22 +525,16 @@ static int i2c_device_match(struct device *dev, struct device_driver *drv)  	return 0;  } - -/* uevent helps with hotplug: modprobe -q $(MODALIAS) */  static int i2c_device_uevent(struct device *dev, struct kobj_uevent_env *env)  { -	struct i2c_client	*client = to_i2c_client(dev); +	struct i2c_client *client = to_i2c_client(dev);  	int rc;  	rc = acpi_device_uevent_modalias(dev, env);  	if (rc != -ENODEV)  		return rc; -	if (add_uevent_var(env, "MODALIAS=%s%s", -			   I2C_MODULE_PREFIX, client->name)) -		return -ENOMEM; -	dev_dbg(dev, "uevent\n"); -	return 0; +	return add_uevent_var(env, "MODALIAS=%s%s", I2C_MODULE_PREFIX, client->name);  }  /* i2c bus recovery routines */  | 
