From: Kishon Vijay Abraham I Date: Fri, 14 Jun 2013 13:18:24 +0000 (+0530) Subject: extcon: palmas: remove assigning "edev.name" to palmas X-Git-Tag: next-20130822~25^2~14^2~9 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fc57303a82bcef7b43de39ac0d177400ff4e715f;p=karo-tx-linux.git extcon: palmas: remove assigning "edev.name" to palmas of_extcon_get_extcon_dev() uses dev_name for getting the reference to the extcon device. If the extcon driver assigns a different name other than dev_name, of_extcon_get_extcon_dev() wouldn't be able to find the reference to the extcon device. Since the client drivers of extcon-palmas would be using of_extcon_get_extcon_dev(), removed assigning edev.name in extcon-palmas. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Chanwoo Choi Signed-off-by: Myungjoo Ham --- diff --git a/drivers/extcon/extcon-palmas.c b/drivers/extcon/extcon-palmas.c index b752a0ad7b63..7350ac2ec5e4 100644 --- a/drivers/extcon/extcon-palmas.c +++ b/drivers/extcon/extcon-palmas.c @@ -172,7 +172,6 @@ static int palmas_usb_probe(struct platform_device *pdev) platform_set_drvdata(pdev, palmas_usb); - palmas_usb->edev.name = "palmas-usb"; palmas_usb->edev.supported_cable = palmas_extcon_cable; palmas_usb->edev.mutually_exclusive = mutually_exclusive;