Input: pwm-beeper - switch to using managed resources
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 6 Jan 2017 17:50:14 +0000 (09:50 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 22 Jan 2017 08:23:17 +0000 (00:23 -0800)
commitbcf4b0460ba558b1e1fcaa7c160076751b560d03
tree15b7e2d99a0507930dcbf9432632a2bdd3ae992a
parent2031717544cab77b9b6fd8c33fd24cbbe2f607b6
Input: pwm-beeper - switch to using managed resources

Use of managed resources (devm) simplifies error handling and tear down
of the driver.

Reviewed-by: Thierry Reding <thierry.reding@gmail.com>
Tested-by: David Lechner <david@lechnology.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/pwm-beeper.c