*plen = len;
- ---- if (atmel_spi_dma_slave_config(as, &slave_config, 8))
+ ++++ if (atmel_spi_dma_slave_config(as, &slave_config,
+ ++++ xfer->bits_per_word))
goto err_exit;
/* Send both scatterlists */
return clk_prepare_enable(as->clk);
}
+++++#ifdef CONFIG_PM_SLEEP
static int atmel_spi_suspend(struct device *dev)
{
struct spi_master *master = dev_get_drvdata(dev);
return ret;
}
+++++#endif
static const struct dev_pm_ops atmel_spi_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(atmel_spi_suspend, atmel_spi_resume)