From: Andy Shevchenko Date: Mon, 24 Feb 2025 17:27:41 +0000 (+0200) Subject: auxdisplay: hd44780: Make use of hd44780_common_free() X-Git-Tag: v6.15-rc1~175^2^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33152d3660b8fe53763da1fa7715e2cdae910335;p=thirdparty%2Fkernel%2Flinux.git auxdisplay: hd44780: Make use of hd44780_common_free() Use the symmetrical API to free the common resources. Signed-off-by: Andy Shevchenko Reviewed-by: Geert Uytterhoeven --- diff --git a/drivers/auxdisplay/hd44780.c b/drivers/auxdisplay/hd44780.c index 1d67fe3243412..ef38cb7bf13d8 100644 --- a/drivers/auxdisplay/hd44780.c +++ b/drivers/auxdisplay/hd44780.c @@ -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); }