Input: max7359 - introduce the use of managed interfaces
authorHimangi Saraogi <himangi774@gmail.com>
Sat, 19 Jul 2014 23:16:02 +0000 (16:16 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 20 Jul 2014 20:17:00 +0000 (13:17 -0700)
commit997502f89346bb9b7002dc4f4003636245346e8f
tree0c0d3545c66b324be249b4fbb69dedc1d5fc68ea
parent128bb95debc8302a999a495dd21726ca422da12a
Input: max7359 - introduce the use of managed interfaces

This patch introduces the use of managed interfaces like devm_kzalloc,
devm_input_allocate_device, devm_request_threaded_irq etc. and does away
with the calls to free the allocated memory. The remove function is no
longer required and is completely done away with. Also, the labels in the
probe function are removed.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/max7359_keypad.c