Commit e5a7074a authored by Yijing Wang's avatar Yijing Wang Committed by Wolfram Sang

i2c: remove CONFIG_HOTPLUG ifdefs

CONFIG_HOTPLUG is going away as an option, cleanup CONFIG_HOTPLUG
ifdefs in i2c files.
Signed-off-by: default avatarYijing Wang <wangyijing@huawei.com>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 85747311
...@@ -93,7 +93,6 @@ static int i2c_device_match(struct device *dev, struct device_driver *drv) ...@@ -93,7 +93,6 @@ static int i2c_device_match(struct device *dev, struct device_driver *drv)
return 0; return 0;
} }
#ifdef CONFIG_HOTPLUG
/* uevent helps with hotplug: modprobe -q $(MODALIAS) */ /* uevent helps with hotplug: modprobe -q $(MODALIAS) */
static int i2c_device_uevent(struct device *dev, struct kobj_uevent_env *env) static int i2c_device_uevent(struct device *dev, struct kobj_uevent_env *env)
...@@ -107,10 +106,6 @@ static int i2c_device_uevent(struct device *dev, struct kobj_uevent_env *env) ...@@ -107,10 +106,6 @@ static int i2c_device_uevent(struct device *dev, struct kobj_uevent_env *env)
return 0; return 0;
} }
#else
#define i2c_device_uevent NULL
#endif /* CONFIG_HOTPLUG */
/* i2c bus recovery routines */ /* i2c bus recovery routines */
static int get_scl_gpio_value(struct i2c_adapter *adap) static int get_scl_gpio_value(struct i2c_adapter *adap)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment