Commit cb79eb95 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Miguel Ojeda

auxdisplay: hd44780: Convert to use charlcd_free()

Convert to use charlcd_free() instead of kfree() for sake of type check.
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>
parent 9b11d639
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment