Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 475c5a15 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Greg Kroah-Hartman
Browse files

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: default avatarStephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 2c7afd12
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -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.