platform_device_unregister(devices[i]);
}
-static int spi_gpio_custom_get_slave_mode(unsigned int id,
+static int __init spi_gpio_custom_get_slave_mode(unsigned int id,
unsigned int *params,
int slave_index)
{
return params[param_index];
}
-static int spi_gpio_custom_get_slave_maxfreq(unsigned int id,
+static int __init spi_gpio_custom_get_slave_maxfreq(unsigned int id,
unsigned int *params,
int slave_index)
{
return params[param_index];
}
-static int spi_gpio_custom_get_slave_cs(unsigned int id,
+static int __init spi_gpio_custom_get_slave_cs(unsigned int id,
unsigned int *params,
int slave_index)
{
return params[param_index];
}
-static int spi_gpio_custom_check_params(unsigned int id, unsigned int *params)
+static int __init spi_gpio_custom_check_params(unsigned int id, unsigned int *params)
{
int i;
struct spi_master *master;