driver: Call bus->remove instead of driver->remove
In devices_shutdown we should call the busses remove function
which in turn calls the drivers remove function. Otherwise for
example PCI devices never get removed since they do not have
a remove function but a pcidev->remove function instead.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent e0899df commit 80264a8ac4ab878bb0d3ebe7f6552f2203549b78
@Sascha Hauer Sascha Hauer authored on 16 Mar 2015
Showing 1 changed file
View
drivers/base/driver.c