mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 12:44:11 +08:00
auxdisplay: hd44780: Convert to use charlcd_free()
Convert to use charlcd_free() instead of kfree() for sake of type check. Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
This commit is contained in:
parent
9b11d63966
commit
cb79eb95c5
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user