hd44780.c (762f99f4f3cb41a775b5157dd761217beba65873) | hd44780.c (ddf75a86aba2cfb7ec4497e8692b60c8c8fe0ee7) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * HD44780 Character LCD driver for Linux 4 * 5 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu> 6 * Copyright (C) 2016-2017 Glider bvba 7 */ 8 --- 308 unchanged lines hidden (view full) --- 317fail1: 318 kfree(hdc); 319 return ret; 320} 321 322static int hd44780_remove(struct platform_device *pdev) 323{ 324 struct charlcd *lcd = platform_get_drvdata(pdev); | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * HD44780 Character LCD driver for Linux 4 * 5 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu> 6 * Copyright (C) 2016-2017 Glider bvba 7 */ 8 --- 308 unchanged lines hidden (view full) --- 317fail1: 318 kfree(hdc); 319 return ret; 320} 321 322static int hd44780_remove(struct platform_device *pdev) 323{ 324 struct charlcd *lcd = platform_get_drvdata(pdev); |
325 struct hd44780_common *hdc = lcd->drvdata; |
|
325 326 charlcd_unregister(lcd); | 326 327 charlcd_unregister(lcd); |
328 kfree(hdc->hd44780); |
|
327 kfree(lcd->drvdata); 328 329 kfree(lcd); 330 return 0; 331} 332 333static const struct of_device_id hd44780_of_match[] = { 334 { .compatible = "hit,hd44780" }, --- 17 unchanged lines hidden --- | 329 kfree(lcd->drvdata); 330 331 kfree(lcd); 332 return 0; 333} 334 335static const struct of_device_id hd44780_of_match[] = { 336 { .compatible = "hit,hd44780" }, --- 17 unchanged lines hidden --- |