mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04: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 <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Miguel Ojeda <[email protected]>
This commit is contained in:
parent
9b11d63966
commit
cb79eb95c5
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue