diff options
| author | Kishon Vijay Abraham I <kishon@ti.com> | 2013-06-14 09:18:24 -0400 |
|---|---|---|
| committer | Chanwoo Choi <cw00.choi@samsung.com> | 2013-08-04 19:53:33 -0400 |
| commit | fc57303a82bcef7b43de39ac0d177400ff4e715f (patch) | |
| tree | 84399ca4b086ffdc37c416cafcc8c823e8ac8708 /drivers/extcon | |
| parent | 8061ad7239f3f97b477984660e95134ca684578c (diff) | |
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 <kishon@ti.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/extcon')
| -rw-r--r-- | drivers/extcon/extcon-palmas.c | 1 |
1 files changed, 0 insertions, 1 deletions
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) | |||
| 172 | 172 | ||
| 173 | platform_set_drvdata(pdev, palmas_usb); | 173 | platform_set_drvdata(pdev, palmas_usb); |
| 174 | 174 | ||
| 175 | palmas_usb->edev.name = "palmas-usb"; | ||
| 176 | palmas_usb->edev.supported_cable = palmas_extcon_cable; | 175 | palmas_usb->edev.supported_cable = palmas_extcon_cable; |
| 177 | palmas_usb->edev.mutually_exclusive = mutually_exclusive; | 176 | palmas_usb->edev.mutually_exclusive = mutually_exclusive; |
| 178 | 177 | ||
