diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-03-12 10:44:32 -0400 |
|---|---|---|
| committer | Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> | 2019-03-17 03:48:28 -0400 |
| commit | cb79eb95c56fe6afe2baf1df01f22b1bed3f6060 (patch) | |
| tree | a344e7ff30b4861a5d50a1b9e648af0e9efcf6f3 | |
| parent | 9b11d63966fc70b5496013bb211fa9025cd1ad61 (diff) | |
auxdisplay: hd44780: Convert to use charlcd_free()
Convert to use charlcd_free() instead of kfree() for sake of type check.
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
| -rw-r--r-- | drivers/auxdisplay/hd44780.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/auxdisplay/hd44780.c b/drivers/auxdisplay/hd44780.c index 3cde351fb5c9..ab15b64707ad 100644 --- a/drivers/auxdisplay/hd44780.c +++ b/drivers/auxdisplay/hd44780.c | |||
| @@ -271,7 +271,7 @@ static int hd44780_probe(struct platform_device *pdev) | |||
| 271 | return 0; | 271 | return 0; |
| 272 | 272 | ||
| 273 | fail: | 273 | fail: |
| 274 | kfree(lcd); | 274 | charlcd_free(lcd); |
| 275 | return ret; | 275 | return ret; |
| 276 | } | 276 | } |
| 277 | 277 | ||
| @@ -281,7 +281,7 @@ static int hd44780_remove(struct platform_device *pdev) | |||
| 281 | 281 | ||
| 282 | charlcd_unregister(lcd); | 282 | charlcd_unregister(lcd); |
| 283 | 283 | ||
| 284 | kfree(lcd); | 284 | charlcd_free(lcd); |
| 285 | return 0; | 285 | return 0; |
| 286 | } | 286 | } |
| 287 | 287 | ||
