[PATCH v3 02/14] spi: Deduplicate IDR allocation code in spi_register_controller()