Input: ad7877 - use managed resource allocations
authorAndi Shyti <andi@etezian.org>
Tue, 23 Jan 2018 00:08:51 +0000 (16:08 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 23 Jan 2018 00:25:53 +0000 (16:25 -0800)
commitfbe6a536cf9c71ac02b763b76ad7395132d4ecbc
tree770618fd6111ebec8e3107adab37ff96b33d8412
parentf8c5938f6919bfe7b82ed34472bee1eb637ddbea
Input: ad7877 - use managed resource allocations

Use managed resource allocations to simplify error handling during
probing failure and module exiting.

With this all the goto labels in the probe function together with
the cleanups in the remove function are unnecessary, therefore
removed.

Signed-off-by: Andi Shyti <andi@etezian.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ad7877.c