/* This must be called from context that can sleep.  */
void spi_unregister_master(struct spi_master *master)
/* This must be called from context that can sleep.  */
void spi_unregister_master(struct spi_master *master)
{
	int dummy;
	dummy = device_for_each_child(master->dev.parent, &master->dev,
					__unregister);
	device_unregister(&master->dev);
}