]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: ipack: CONFIG_HOTPLUG is always enabled
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Nov 2012 01:50:14 +0000 (17:50 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Nov 2012 01:50:14 +0000 (17:50 -0800)
as CONFIG_HOTPLUG is always enabled now, just remove the #ifdef logic in
the ipack core for it if was disabled.

Cc:Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Cc: Jens Taprogge <jens.taprogge@taprogge.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ipack/ipack.c

index f713ab3e83b7ffd3063c9c2648eea2dbed1727d2..429696bc544b13c45fbcdcafde42edef5987a914 100644 (file)
@@ -85,8 +85,6 @@ static int ipack_bus_remove(struct device *device)
        return 0;
 }
 
-#ifdef CONFIG_HOTPLUG
-
 static int ipack_uevent(struct device *dev, struct kobj_uevent_env *env)
 {
        struct ipack_device *idev;
@@ -104,12 +102,6 @@ static int ipack_uevent(struct device *dev, struct kobj_uevent_env *env)
        return 0;
 }
 
-#else /* !CONFIG_HOTPLUG */
-
-#define ipack_uevent NULL
-
-#endif /* !CONFIG_HOTPLUG */
-
 #define ipack_device_attr(field, format_string)                                \
 static ssize_t                                                         \
 field##_show(struct device *dev, struct device_attribute *attr,                \