]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitec48743a6df751c02a62d2e88b8380da37a5aae1
tree770618fd6111ebec8e3107adab37ff96b33d8412
parentaf4225a3d27534868aa00df8802538879d0e6d6e
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