projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Fix compiler warning in driver core for CONFIG_HOTPLUG=N
[powerpc.git]
/
drivers
/
base
/
bus.c
diff --git
a/drivers/base/bus.c
b/drivers/base/bus.c
index
29f6af5
..
c314156
100644
(file)
--- a/
drivers/base/bus.c
+++ b/
drivers/base/bus.c
@@
-133,6
+133,8
@@
static struct kobj_type ktype_bus = {
decl_subsys(bus, &ktype_bus, NULL);
decl_subsys(bus, &ktype_bus, NULL);
+#ifdef CONFIG_HOTPLUG
+
/* Manually detach a device from its associated driver. */
static int driver_helper(struct device *dev, void *data)
{
/* Manually detach a device from its associated driver. */
static int driver_helper(struct device *dev, void *data)
{
@@
-193,6
+195,7
@@
static ssize_t driver_bind(struct device_driver *drv,
}
static DRIVER_ATTR(bind, S_IWUSR, NULL, driver_bind);
}
static DRIVER_ATTR(bind, S_IWUSR, NULL, driver_bind);
+#endif
static struct device * next_device(struct klist_iter * i)
{
static struct device * next_device(struct klist_iter * i)
{