summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2025-02-24 19:27:42 +0200
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2025-03-10 18:03:02 +0200
commit664d2179c6e3d08d5e1180beddd79ca8f0663d89 (patch)
treee5ddee8ec25ce5fe0097f602fd9adf42d780c5e2
parent33152d3660b8fe53763da1fa7715e2cdae910335 (diff)
auxdisplay: panel: Make use of hd44780_common_free()
Use the symmetrical API to free the common resources. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
-rw-r--r--drivers/auxdisplay/panel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/auxdisplay/panel.c b/drivers/auxdisplay/panel.c
index 4da142692d55..aa1d03fef22e 100644
--- a/drivers/auxdisplay/panel.c
+++ b/drivers/auxdisplay/panel.c
@@ -837,7 +837,7 @@ static void lcd_init(void)
charlcd = charlcd_alloc(0);
if (!charlcd) {
- kfree(hdc);
+ hd44780_common_free(hdc);
return;
}
@@ -1691,7 +1691,7 @@ static void panel_detach(struct parport *port)
if (lcd.enabled) {
charlcd_unregister(lcd.charlcd);
lcd.initialized = false;
- kfree(lcd.charlcd->drvdata);
+ hd44780_common_free(lcd.charlcd->drvdata);
charlcd_free(lcd.charlcd);
lcd.charlcd = NULL;
}