author: Dan Carpenter <dan.carpenter@oracle.com> 2020-11-06 22:24:15 +0300
committer: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> 2020-11-09 14:07:25 +0100
commit: 2cfd72f81cf69c2659c6d2121308b55416229beb
parent: ffdf726db7fb02a96396dcb8deb7436b4a47dd14
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/drivers/auxdisplay/lcd2s.c b/drivers/auxdisplay/lcd2s.c
index cfa5f86deeef..3eb7f04db6cb 100644
--- a/drivers/auxdisplay/lcd2s.c
+++ b/drivers/auxdisplay/lcd2s.c
@@ -348,8 +348,8 @@ static int lcd2s_i2c_remove(struct i2c_client *i2c)
{
struct lcd2s_data *lcd2s = i2c_get_clientdata(i2c);
- kfree(lcd2s->charlcd);
charlcd_unregister(lcd2s->charlcd);
+ kfree(lcd2s->charlcd);
return 0;
}