Commit 33152d36 authored by Andy Shevchenko's avatar Andy Shevchenko
Browse files

auxdisplay: hd44780: 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 d5c7c273
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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);
}