/* Return: 0 in case of success, a negative error core otherwise.  */
int spi_mem_driver_register_with_owner(struct spi_mem_driver *memdrv, struct module *owner)
/* Return: 0 in case of success, a negative error core otherwise.  */
int spi_mem_driver_register_with_owner(struct spi_mem_driver *memdrv, struct module *owner)
{
	memdrv->spidrv.probe = spi_mem_probe;
	memdrv->spidrv.remove = spi_mem_remove;
	memdrv->spidrv.shutdown = spi_mem_shutdown;
	return __spi_register_driver(owner, &memdrv->spidrv);
}