mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
i2c: remove CONFIG_HOTPLUG ifdefs
CONFIG_HOTPLUG is going away as an option, cleanup CONFIG_HOTPLUG ifdefs in i2c files. Signed-off-by: Yijing Wang <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
85747311ec
commit
e5a7074a75
1 changed files with 0 additions and 5 deletions
|
|
@ -93,7 +93,6 @@ static int i2c_device_match(struct device *dev, struct device_driver *drv)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_HOTPLUG
|
||||
|
||||
/* uevent helps with hotplug: modprobe -q $(MODALIAS) */
|
||||
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;
|
||||
}
|
||||
|
||||
#else
|
||||
#define i2c_device_uevent NULL
|
||||
#endif /* CONFIG_HOTPLUG */
|
||||
|
||||
/* i2c bus recovery routines */
|
||||
static int get_scl_gpio_value(struct i2c_adapter *adap)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue