]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Input: twl6040-vibra - use devm functions
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 25 Apr 2014 16:21:12 +0000 (09:21 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 26 Apr 2014 05:07:33 +0000 (22:07 -0700)
commit37e62d20f6c478919c88a543bce5aa293102e03c
treecb07220af91addef1cc0a93cccaa9179fd167c6a
parentf9b75effeec27c0d4187c81510f027a23e164e6b
Input: twl6040-vibra - use devm functions

Using devm_regulator_bulk_get() and devm_input_allocate_device() can make
the code cleaner and smaller as we do not need to manually free resources
the error and remove paths.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/twl6040-vibra.c