]> git.ipfire.org Git - thirdparty/linux.git/commit
auxdisplay: arm-charlcd: convert to use device managed APIs
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 29 Dec 2025 13:03:06 +0000 (14:03 +0100)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 29 Dec 2025 13:27:55 +0000 (14:27 +0100)
commit483d86cf4b94f7a390b2a9e5e26a81f3a14bd145
tree5b24d8e5d095b8332e2a2d80344b7fc3a58c2072
parentb5c23a4d291d2ac1dfdd574a68a3a68c8da3069e
auxdisplay: arm-charlcd: convert to use device managed APIs

The current probe function of the driver is implemented by using
plain old APIs. As Geert noted, one of the error paths has a mistake
that may lead to a wrong call. Instead of targeting that particular
issue, convert the driver to use device managed APIs altogether.
It's not needed per se (driver can never be removed once loaded),
but it simplifies coding and error handling.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Closes: https://lore.kernel.org/r/CAMuHMdVquNEoxRQkcBEH0nC+CDuib6o0H6m3CBk3ZN2267LpQw@mail.gmail.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/auxdisplay/arm-charlcd.c