]> git.kernelconcepts.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>
Wed, 14 May 2014 23:39:47 +0000 (16:39 -0700)
commit1f9e1470ab34fe7e523014ae30dd3b2e65177ae4
tree1b673cc5b2401658dbb1d0db2de94d6962cff602
parentc728601ea3531dc1f0dcd74c1db1e85e59f2be68
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