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 @@ static int hd44780_probe(struct platform_device *pdev)
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);
}