summaryrefslogtreecommitdiffstats
path: root/drivers/base/dd.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-05-08 22:41:49 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2007-06-08 21:41:07 +0200
commit475c5a1518477f0301fc50dc59e690032fad1fef (patch)
tree32751f1c41436005bb2f09b4cfc88eac2f981d27 /drivers/base/dd.c
parentDriver core: keep PHYSDEV for old struct class_device (diff)
downloadlinux-475c5a1518477f0301fc50dc59e690032fad1fef.tar.xz
linux-475c5a1518477f0301fc50dc59e690032fad1fef.zip
Driver core: kill unused code
CC drivers/base/dd.o drivers/base/dd.c:211: warning: =E2=80=98device_probe_drivers=E2=80=99 defi= ned but not used Looks like the following is dead. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/dd.c')
-rw-r--r--drivers/base/dd.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index 92428e55b0c2..b0088b0efecd 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -207,19 +207,6 @@ static int __device_attach(struct device_driver * drv, void * data)
return driver_probe_device(drv, dev);
}
-static int device_probe_drivers(void *data)
-{
- struct device *dev = data;
- int ret = 0;
-
- if (dev->bus) {
- down(&dev->sem);
- ret = bus_for_each_drv(dev->bus, NULL, dev, __device_attach);
- up(&dev->sem);
- }
- return ret;
-}
-
/**
* device_attach - try to attach device to a driver.
* @dev: device.