Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc57303a authored by Kishon Vijay Abraham I's avatar Kishon Vijay Abraham I Committed by Chanwoo Choi
Browse files

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: default avatarKishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: default avatarMyungjoo Ham <myungjoo.ham@samsung.com>
parent 8061ad72
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -172,7 +172,6 @@ static int palmas_usb_probe(struct platform_device *pdev)


	platform_set_drvdata(pdev, palmas_usb);
	platform_set_drvdata(pdev, palmas_usb);


	palmas_usb->edev.name = "palmas-usb";
	palmas_usb->edev.supported_cable = palmas_extcon_cable;
	palmas_usb->edev.supported_cable = palmas_extcon_cable;
	palmas_usb->edev.mutually_exclusive = mutually_exclusive;
	palmas_usb->edev.mutually_exclusive = mutually_exclusive;