aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/extcon/extcon-palmas.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/extcon/extcon-palmas.c')
-rw-r--r--drivers/extcon/extcon-palmas.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/extcon/extcon-palmas.c b/drivers/extcon/extcon-palmas.c
index 7417ce84eb2d..230e1220ce48 100644
--- a/drivers/extcon/extcon-palmas.c
+++ b/drivers/extcon/extcon-palmas.c
@@ -194,7 +194,6 @@ static int palmas_usb_probe(struct platform_device *pdev)
194 return -ENOMEM; 194 return -ENOMEM;
195 } 195 }
196 palmas_usb->edev->name = kstrdup(node->name, GFP_KERNEL); 196 palmas_usb->edev->name = kstrdup(node->name, GFP_KERNEL);
197 palmas_usb->edev->dev.parent = palmas_usb->dev;
198 palmas_usb->edev->mutually_exclusive = mutually_exclusive; 197 palmas_usb->edev->mutually_exclusive = mutually_exclusive;
199 198
200 status = devm_extcon_dev_register(&pdev->dev, palmas_usb->edev); 199 status = devm_extcon_dev_register(&pdev->dev, palmas_usb->edev);
@@ -278,7 +277,7 @@ static int palmas_usb_resume(struct device *dev)
278 277
279static SIMPLE_DEV_PM_OPS(palmas_pm_ops, palmas_usb_suspend, palmas_usb_resume); 278static SIMPLE_DEV_PM_OPS(palmas_pm_ops, palmas_usb_suspend, palmas_usb_resume);
280 279
281static struct of_device_id of_palmas_match_tbl[] = { 280static const struct of_device_id of_palmas_match_tbl[] = {
282 { .compatible = "ti,palmas-usb", }, 281 { .compatible = "ti,palmas-usb", },
283 { .compatible = "ti,palmas-usb-vid", }, 282 { .compatible = "ti,palmas-usb-vid", },
284 { .compatible = "ti,twl6035-usb", }, 283 { .compatible = "ti,twl6035-usb", },