summaryrefslogtreecommitdiff
path: root/drivers/extcon/extcon-max14577.c
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2015-05-04 14:20:27 +0300
committerChanwoo Choi <cw00.choi@samsung.com>2015-05-19 10:39:06 +0300
commitd71aadda19f83521eca301cb154b81a7bcca78a2 (patch)
tree61d9d1c407a37f8843cd0d8149c9b56d0d8352f0 /drivers/extcon/extcon-max14577.c
parent638f958baeaf9d50f42cd09993f518b3a7a0f52e (diff)
downloadlinux-d71aadda19f83521eca301cb154b81a7bcca78a2.tar.xz
extcon: Remove the optional name of extcon device
This patch removes the optional name of extcon device. Instead, extcon_dev_register() set the device name as 'extcon[number]' naming pattern. - /sys/class/extcon/[hardcoded device name] -> /sys/class/extcon/extcon[number] Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Acked-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Cc: MyungJoo Ham <myungjoo.ham@samsung.com> Cc: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Cc: Graeme Gregory <gg@slimlogic.co.uk> Cc: Kishon Vijay Abraham I <kishon@ti.com> Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com> Cc: Jaewon Kim <jaewon02.kim@samsung.com>
Diffstat (limited to 'drivers/extcon/extcon-max14577.c')
-rw-r--r--drivers/extcon/extcon-max14577.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/extcon/extcon-max14577.c b/drivers/extcon/extcon-max14577.c
index 6d5febe91a39..ad8f8ddc8e51 100644
--- a/drivers/extcon/extcon-max14577.c
+++ b/drivers/extcon/extcon-max14577.c
@@ -729,8 +729,6 @@ static int max14577_muic_probe(struct platform_device *pdev)
return -ENOMEM;
}
- info->edev->name = dev_name(&pdev->dev);
-
ret = devm_extcon_dev_register(&pdev->dev, info->edev);
if (ret) {
dev_err(&pdev->dev, "failed to register extcon device\n");