Skip to content

Commit

Permalink
Driver core: kill unused code
Browse files Browse the repository at this point in the history
  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>
  • Loading branch information
Stephen Hemminger authored and Greg Kroah-Hartman committed Jun 8, 2007
1 parent 2c7afd1 commit 475c5a1
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions drivers/base/dd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 475c5a1

Please sign in to comment.