i2c: remove CONFIG_HOTPLUG ifdefs
Subsystems (2)
PATCH 1/1 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]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Bill Pemberton <wfp5p-4Ng6DfrEGID2fBVCVOL8/[email protected]>
--- drivers/i2c/i2c-core.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-)
drivers/i2c/i2c-core.c +0 -5
@@ -91,7 +91,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)
@@ -105,10 +104,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 */ -static int i2c_device_probe (struct device *dev) {struct i2c_client *client =i2c_verify_client (dev);
Signature · 1 line
1.7.1
Quoted 6 lines · Yijing Wang
CONFIG_HOTPLUGis going away as an option, cleanupCONFIG_HOTPLUGifdefs in i2c files.Signed-off-by Yijing Wang <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Cc Bill Pemberton <wfp5p-4Ng6DfrEGID2fBVCVOL8/[email protected]>
Wolfram Sang
AppliedQuoted 4 lines · Yijing Wang
CONFIG_HOTPLUGis going away as an option, cleanupCONFIG_HOTPLUGifdefs in i2c files.Signed-off-by Yijing Wang <[email protected]>
Applied to for-next, thanks!