mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
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>
This commit is contained in:
parent
33152d3660
commit
664d2179c6
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue