Commit fb20311f authored by David Brownell's avatar David Brownell Committed by Tony Lindgren

omap2_mcspi fixes + cleanups

Initial updates for McSPI driver:

 - bug fixes:
    * handle byte-wide tx pio correctly for multiple bytes
    * cleanup workqueue on module exit
    * allow modular build (and rmmod)
    * request_mem_region
    * remove wrongly exported driver symbol

 - cleanup:
    * remove needless debug strings from object file
    * remove needless init and exit sections from object file
    * remove superfluous get/put of spi_master
    * fix whitespace and indentation bugs
    * fix line-too-long bugs
    * use spi_master_*() calls not class_*() calls
    * use dev_*() messaging not printk

Combined with the next patch, this gives around a 10% shrink to the driver
footprint, improves correctness, and helps it get ready to merge upstream.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
parent b06feca3
...@@ -134,7 +134,7 @@ config SPI_OMAP_UWIRE ...@@ -134,7 +134,7 @@ config SPI_OMAP_UWIRE
This hooks up to the MicroWire controller on OMAP1 chips. This hooks up to the MicroWire controller on OMAP1 chips.
config SPI_OMAP24XX config SPI_OMAP24XX
bool "McSPI driver for OMAP24xx" tristate "McSPI driver for OMAP24xx"
depends on SPI_MASTER && ARCH_OMAP24XX depends on SPI_MASTER && ARCH_OMAP24XX
help help
SPI master controller for OMAP24xx McSPI modules. SPI master controller for OMAP24xx McSPI modules.
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment