* spi_master ops
*/
---- ----static int mpc52xx_spi_setup(struct spi_device *spi)
---- ----{
---- ---- if (spi->bits_per_word % 8)
---- ---- return -EINVAL;
---- ----
---- ---- if (spi->mode & ~(SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST))
--- ---- return -EINVAL;
--- ----
--- ---- if (spi->chip_select >= spi->master->num_chipselect)
---- ---- return -EINVAL;
---- ----
---- ---- return 0;
---- ----}
---- ----
static int mpc52xx_spi_transfer(struct spi_device *spi, struct spi_message *m)
{
struct mpc52xx_spi *ms = spi_master_get_devdata(spi->master);