OMAP: runtime: McSPI driver runtime conversion
authorGovindraj.R <govindraj.raja@ti.com>
Wed, 2 Feb 2011 12:22:15 +0000 (17:52 +0530)
committerTony Lindgren <tony@atomide.com>
Thu, 17 Feb 2011 17:54:13 +0000 (09:54 -0800)
commit1f1a4384b6500273020e48130f73601e4ba7d84b
tree433633041e1e726e882453c4aa8dcfc3c2dbded0
parent1a5d81905aec1536783fb6ab875f31910f449941
OMAP: runtime: McSPI driver runtime conversion

McSPI runtime conversion.
Changes involves:
1) remove clock framework apis to use runtime framework apis.
2) context restore from runtime resume which is a callback for get_sync.
3) Remove SYSCONFIG(sysc) register handling
        (a) Remove context save and restore of sysc reg and remove soft reset
            done from sysc reg as this will be done with hwmod framework.
        (b) Also cleanup sysc reg bit macros.
4) Rename the omap2_mcspi_reset function to omap2_mcspi_master_setup
   function as with hwmod changes soft reset will be done in
   hwmod framework itself and use the return value from clock
   enable function to return for failure scenarios.

Signed-off-by: Charulatha V <charu@ti.com>
Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Reviewed-by: Partha Basak <p-basak2@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/spi/omap2_mcspi.c