/* spi_register_driver - register a SPI driver @sdrv: the driver to register Context: can sleep  */
int spi_register_driver(struct spi_driver *sdrv)
/* spi_register_driver - register a SPI driver @sdrv: the driver to register Context: can sleep  */
int spi_register_driver(struct spi_driver *sdrv)
{
	sdrv->driver.bus = &spi_bus_type;
	if (sdrv->probe)
		sdrv->driver.probe = spi_drv_probe;
	if (sdrv->remove)
		sdrv->driver.remove = spi_drv_remove;
	if (sdrv->shutdown)
		sdrv->driver.shutdown = spi_drv_shutdown;
	return driver_register(&sdrv->driver);
}