u32 tx_shift; /* TX data reg shift when in qe mode */
unsigned int flags;
-#define SPI_QE_CPU_MODE (1 << 0) /* QE CPU ("PIO") mode */
-#define SPI_CPM_MODE (1 << 1) /* CPM/QE ("DMA") mode */
-#define SPI_CPM1 (1 << 2) /* SPI unit is in CPM1 block */
-#define SPI_CPM2 (1 << 3) /* SPI unit is in CPM2 block */
-#define SPI_QE (1 << 4) /* SPI unit is in QE block */
struct workqueue_struct *workqueue;
struct work_struct work;
init_completion(&mpc8xxx_spi->done);
- mpc8xxx_spi->base = ioremap(mem->start, mem->end - mem->start + 1);
+ mpc8xxx_spi->base = ioremap(mem->start, resource_size(mem));
if (mpc8xxx_spi->base == NULL) {
ret = -ENOMEM;
goto err_ioremap;
MODULE_ALIAS("platform:mpc8xxx_spi");
static struct platform_driver mpc8xxx_spi_driver = {
.probe = plat_mpc8xxx_spi_probe,
- .remove = __exit_p(plat_mpc8xxx_spi_remove),
+ .remove = __devexit_p(plat_mpc8xxx_spi_remove),
.driver = {
.name = "mpc8xxx_spi",
.owner = THIS_MODULE,