Skip to content

Commit 664d217

Browse files
committed
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>
1 parent 33152d3 commit 664d217

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/auxdisplay/panel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ static void lcd_init(void)
837837

838838
charlcd = charlcd_alloc(0);
839839
if (!charlcd) {
840-
kfree(hdc);
840+
hd44780_common_free(hdc);
841841
return;
842842
}
843843

@@ -1691,7 +1691,7 @@ static void panel_detach(struct parport *port)
16911691
if (lcd.enabled) {
16921692
charlcd_unregister(lcd.charlcd);
16931693
lcd.initialized = false;
1694-
kfree(lcd.charlcd->drvdata);
1694+
hd44780_common_free(lcd.charlcd->drvdata);
16951695
charlcd_free(lcd.charlcd);
16961696
lcd.charlcd = NULL;
16971697
}

0 commit comments

Comments
 (0)