]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteb5e7046805fd7835c00e8cc21025c3df76bc3e6
tree5357d7e457307e698bd635c837774d271588cd4f
parentaf1755c6ebbee9890504032f8f46bab179ef1f78
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