OMAP : SPI : use devm_* functions
authorShubhrajyoti D <shubhrajyoti@ti.com>
Sat, 17 Mar 2012 07:14:01 +0000 (12:44 +0530)
committerShubhrajyoti D <shubhrajyoti@ti.com>
Mon, 19 Mar 2012 12:44:07 +0000 (18:14 +0530)
commit1a77b127ae147f5827043a9896d7f4cb248b402e
tree5357d7e457307e698bd635c837774d271588cd4f
parent9fdca9dfe093c76fe1ac1a09888ba9679d46996a
OMAP : SPI : use devm_* functions

The various devm_* functions allocate memory that is released when a driver
detaches. This patch uses devm_request_and_ioremap
to request memory in probe function. Since the freeing is not
needed the calls are deleted from remove function.Also use
use devm_kzalloc for the cs memory allocation.

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
drivers/spi/spi-omap2-mcspi.c