]> git.baikalelectronics.ru Git - kernel.git/commit
gpio/omap: Use devm_ API and add request_mem_region
authorBenoit Cousson <b-cousson@ti.com>
Wed, 1 Feb 2012 15:01:39 +0000 (16:01 +0100)
committerBenoit Cousson <b-cousson@ti.com>
Mon, 5 Mar 2012 22:02:52 +0000 (23:02 +0100)
commit46acd876372e54d6e09366a92a6ed5a86a4e397b
treeb9193d0fcccbac8738cf934e37da1934ab3ebfff
parent5d9182dff38cd8ea0ef106fa702438f6a555a8e8
gpio/omap: Use devm_ API and add request_mem_region

Replace the regular kzalloc and ioremap with the devm_ equivalent
to simplify error handling.

Add the missing devm_request_mem_region to reserve the region used
by the driver.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Tarun Kanti DebBarma <tarun.kanti@ti.com>
drivers/gpio/gpio-omap.c