]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: ads7846 - fix gpiod allocation
authorH. Nikolaus Schaller <hns@goldelico.com>
Sat, 1 Feb 2025 11:43:24 +0000 (12:43 +0100)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 3 Feb 2025 12:37:57 +0000 (04:37 -0800)
commitc9ccb88f534ca760d06590b67571c353a2f0cbcd
tree925a149ef086dc7398358f9205298b1670f561fd
parentc8084a89bd91b05f51a36bff61f63a94c800b0d6
Input: ads7846 - fix gpiod allocation

commit 767d83361aaa ("Input: ads7846 - Convert to use software nodes")

has simplified the code but accidentially converted a devm_gpiod_get()
to gpiod_get(). This leaves the gpio reserved on module remove and the
driver can no longer be loaded again.

Fixes: 767d83361aaa ("Input: ads7846 - Convert to use software nodes")
Cc: stable@vger.kernel.org
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Link: https://lore.kernel.org/r/6e9b143f19cdfda835711a8a7a3966e5a2494cff.1738410204.git.hns@goldelico.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ads7846.c