mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 13:30:45 -05:00
auxdisplay: hd44780: Make use of hd44780_common_free()
Use the symmetrical API to free the common resources. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
@@ -315,7 +315,7 @@ static int hd44780_probe(struct platform_device *pdev)
|
||||
fail2:
|
||||
charlcd_free(lcd);
|
||||
fail1:
|
||||
kfree(hdc);
|
||||
hd44780_common_free(hdc);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -326,8 +326,7 @@ static void hd44780_remove(struct platform_device *pdev)
|
||||
|
||||
charlcd_unregister(lcd);
|
||||
kfree(hdc->hd44780);
|
||||
kfree(lcd->drvdata);
|
||||
|
||||
hd44780_common_free(hdc);
|
||||
charlcd_free(lcd);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user