Commit 664d2179 authored by Andy Shevchenko's avatar Andy Shevchenko
Browse files

auxdisplay: panel: Make use of hd44780_common_free()



Use the symmetrical API to free the common resources.

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent 33152d36
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -837,7 +837,7 @@ static void lcd_init(void)

	charlcd = charlcd_alloc(0);
	if (!charlcd) {
		kfree(hdc);
		hd44780_common_free(hdc);
		return;
	}

@@ -1691,7 +1691,7 @@ static void panel_detach(struct parport *port)
	if (lcd.enabled) {
		charlcd_unregister(lcd.charlcd);
		lcd.initialized = false;
		kfree(lcd.charlcd->drvdata);
		hd44780_common_free(lcd.charlcd->drvdata);
		charlcd_free(lcd.charlcd);
		lcd.charlcd = NULL;
	}