extcon: palmas: Fix NULL pointer error
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 11 Jun 2015 11:19:25 +0000 (20:19 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 29 Jul 2015 08:55:53 +0000 (17:55 +0900)
commite350f8045f642dfc4c28a81c57d2103e1f7ceead
tree972a3b209043dce6c5235ee472c2384468ba5e76
parentcbfe8fa6cd672011c755c3cd85c9ffd4e2d10a6f
extcon: palmas: Fix NULL pointer error

This patch fixes NULL pointer error by removing the unneeded kfree() call
of edev->name because extcon-palmas no longer allocate the memory for edev->name.

Fixes: d71aadda19f8 ("extcon: Remove the optional name of extcon device")
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
drivers/extcon/extcon-palmas.c