From: Bill Pemberton Date: Mon, 19 Nov 2012 18:19:15 +0000 (-0500) Subject: w1: remove CONFIG_HOTPLUG ifdefs X-Git-Tag: v3.8-rc1~95^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c9e9fdc0b2d55886609f0503fb91f96dfec6948;p=platform%2Fupstream%2Fkernel-adaptation-pc.git w1: remove CONFIG_HOTPLUG ifdefs Remove conditional code based on CONFIG_HOTPLUG being false. It's always on now in preparation of it going away as an option. Signed-off-by: Bill Pemberton Cc: Evgeniy Polyakov Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c index 1a57437..7994d933 100644 --- a/drivers/w1/w1.c +++ b/drivers/w1/w1.c @@ -551,7 +551,6 @@ void w1_destroy_master_attributes(struct w1_master *master) sysfs_remove_group(&master->dev.kobj, &w1_master_defattr_group); } -#ifdef CONFIG_HOTPLUG static int w1_uevent(struct device *dev, struct kobj_uevent_env *env) { struct w1_master *md = NULL; @@ -587,12 +586,6 @@ static int w1_uevent(struct device *dev, struct kobj_uevent_env *env) end: return err; } -#else -static int w1_uevent(struct device *dev, struct kobj_uevent_env *env) -{ - return 0; -} -#endif static int __w1_attach_slave_device(struct w1_slave *sl) {