Skip to content

Commit 33152d3

Browse files
committed
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>
1 parent d5c7c27 commit 33152d3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/auxdisplay/hd44780.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ static int hd44780_probe(struct platform_device *pdev)
315315
fail2:
316316
charlcd_free(lcd);
317317
fail1:
318-
kfree(hdc);
318+
hd44780_common_free(hdc);
319319
return ret;
320320
}
321321

@@ -326,8 +326,7 @@ static void hd44780_remove(struct platform_device *pdev)
326326

327327
charlcd_unregister(lcd);
328328
kfree(hdc->hd44780);
329-
kfree(lcd->drvdata);
330-
329+
hd44780_common_free(hdc);
331330
charlcd_free(lcd);
332331
}
333332

0 commit comments

Comments
 (0)