diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2025-02-24 20:27:41 +0300 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2025-03-10 19:03:02 +0300 |
commit | 33152d3660b8fe53763da1fa7715e2cdae910335 (patch) | |
tree | 789f66ccbf3fab7df58b00d49eaa7e94843555a2 | |
parent | d5c7c273d28d3748e00860613f24458b948fb4e3 (diff) | |
download | linux-33152d3660b8fe53763da1fa7715e2cdae910335.tar.xz |
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>
-rw-r--r-- | drivers/auxdisplay/hd44780.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/auxdisplay/hd44780.c b/drivers/auxdisplay/hd44780.c index 1d67fe324341..ef38cb7bf13d 100644 --- a/drivers/auxdisplay/hd44780.c +++ b/drivers/auxdisplay/hd44780.c @@ -315,7 +315,7 @@ fail3: 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); } |