Input: gpio_keys_polled - convert to devm-* API
authorAlexander Shiyan <shc_work@mail.ru>
Mon, 28 Apr 2014 17:48:49 +0000 (10:48 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 14 May 2014 23:40:04 +0000 (16:40 -0700)
commit68252638c8d03a39e5055f823f842c6886d3f83b
treed07a424707d9adcb82151c163ec3549b9451dcb4
parentbf1de9761c21f56d5b0c6a0acd3b792d801c61e6
Input: gpio_keys_polled - convert to devm-* API

Replace existing resource handling in the driver with managed device
resources, this ensures more consistent error values and simplifies error
handling paths:

kzalloc -> devm_kzalloc
gpio_request_one -> devm_gpio_request_one
input_allocate_polled_device -> devm_input_allocate_polled_device

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/gpio_keys_polled.c