1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-12 01:20:14 +00:00

auxdisplay: hd44780: 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:
Andy Shevchenko 2025-02-24 19:27:41 +02:00
parent d5c7c273d2
commit 33152d3660

View File

@ -315,7 +315,7 @@ fail3:
fail2:
charlcd_free(lcd);
fail1:
kfree(hdc);
hd44780_common_free(hdc);
return ret;
}
@ -326,8 +326,7 @@ static void hd44780_remove(struct platform_device *pdev)
charlcd_unregister(lcd);
kfree(hdc->hd44780);
kfree(lcd->drvdata);
hd44780_common_free(hdc);
charlcd_free(lcd);
}