auxdisplay: hd44780: Convert to use charlcd_free()

Convert to use charlcd_free() instead of kfree() for sake of type check.

Reviewed-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Miguel Ojeda <[email protected]>
This commit is contained in:
Andy Shevchenko 2019-03-12 16:44:32 +02:00 • committed by Miguel Ojeda
commit cb79eb95c5

View file

@ -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;
}