gpio: cs5535: Switch to using managed resources with devm_
authorPramod Gurav <pramod.gurav@smartplayin.com>
Wed, 1 Oct 2014 10:46:33 +0000 (16:16 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 21 Oct 2014 08:51:11 +0000 (10:51 +0200)
commit3eebd61322835565bbcb1745bf9bd44e86ff80ca
tree9ece37ba895d02dd78178cd4fee1dc3afa1b8f5f
parent4515b76d9b158ae89db094fe0fb277eaac88be25
gpio: cs5535: Switch to using managed resources with devm_

This change switches to devm_request_region to request region
and hence simplifies the module unload and does away with
release_region in remove function.

Cc: linux-gpio@vger.kernel.org
Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-cs5535.c