From: Andy Shevchenko Date: Tue, 12 Mar 2019 14:44:32 +0000 (+0200) Subject: auxdisplay: hd44780: Convert to use charlcd_free() X-Git-Tag: v5.1-rc2~11^2~3 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=cb79eb95c56fe6afe2baf1df01f22b1bed3f6060;p=uclinux-h8%2Flinux.git auxdisplay: hd44780: Convert to use charlcd_free() Convert to use charlcd_free() instead of kfree() for sake of type check. Reviewed-by: Geert Uytterhoeven Signed-off-by: Andy Shevchenko Signed-off-by: Miguel Ojeda --- diff --git a/drivers/auxdisplay/hd44780.c b/drivers/auxdisplay/hd44780.c index 3cde351fb5c9..ab15b64707ad 100644 --- a/drivers/auxdisplay/hd44780.c +++ b/drivers/auxdisplay/hd44780.c @@ -271,7 +271,7 @@ static int hd44780_probe(struct platform_device *pdev) return 0; fail: - kfree(lcd); + charlcd_free(lcd); return ret; } @@ -281,7 +281,7 @@ static int hd44780_remove(struct platform_device *pdev) charlcd_unregister(lcd); - kfree(lcd); + charlcd_free(lcd); return 0; }