Skip to content

Commit

Permalink
i2c: remove CONFIG_HOTPLUG ifdefs
Browse files Browse the repository at this point in the history
CONFIG_HOTPLUG is going away as an option, cleanup CONFIG_HOTPLUG
ifdefs in i2c files.

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
  • Loading branch information
Yijing Wang authored and Wolfram Sang committed Apr 9, 2013
1 parent 8574731 commit e5a7074
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/i2c/i2c-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
{
Expand Down

0 comments on commit e5a7074

Please sign in to comment.