Skip to content

Commit

Permalink
extcon: arizona: Remove the setting of device name
Browse files Browse the repository at this point in the history
This patch removes the setting of device name. Instead, extcon_dev_register()
set the device name such as 'extcon[number]' naming method.
- /sys/class/extcon/Headset Jack -> /sys/class/extcon/extcon[number]

Cc: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
  • Loading branch information
Chanwoo Choi committed May 19, 2015
1 parent b9ec23c commit a71fbc1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/extcon/extcon-arizona.c
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,6 @@ static int arizona_extcon_probe(struct platform_device *pdev)
dev_err(&pdev->dev, "failed to allocate extcon device\n");
return -ENOMEM;
}
info->edev->name = "Headset Jack";

ret = devm_extcon_dev_register(&pdev->dev, info->edev);
if (ret < 0) {
Expand Down

0 comments on commit a71fbc1

Please sign in to comment.