extcon: max8997: Add missing kfree for info->edev in max8997_muic_remove()
authorAxel Lin <axel.lin@gmail.com>
Sat, 16 Jun 2012 13:25:11 +0000 (21:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Jun 2012 23:30:42 +0000 (16:30 -0700)
commit96c9f05b39a5a3239cf0588cc86a1b95cac652c4
tree9bfad45dcb1e1556ca851d986dfc86eb065c2fc2
parent3f1dc550b069e9fbfe375844f3c76f2cdd12f05c
extcon: max8997: Add missing kfree for info->edev in max8997_muic_remove()

extcon_dev_unregister(info->edev) doest not free info->edev, we need to call
kfree(info->edev) here.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/extcon/extcon-max8997.c