auxdisplay: hd44780: Fix memory leak on ->remove()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 12 Mar 2019 14:44:28 +0000 (16:44 +0200)
committerMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Sun, 17 Mar 2019 07:48:04 +0000 (08:48 +0100)
commit41c8d0adf3c4df1867d98cee4a2c4531352a33ad
treeaf310725645565986b53d94dd8c9961228a370df
parent1c163f4c7b3f621efff9b28a47abb36f7378d783
auxdisplay: hd44780: Fix memory leak on ->remove()

We have to free on ->remove() the allocated resources on ->probe().

Fixes: d47d88361fee ("auxdisplay: Add HD44780 Character LCD support")
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
drivers/auxdisplay/hd44780.c