diff options
-rw-r--r-- | drivers/extcon/extcon-max77693.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c index fb6527607a11..597f33c1f868 100644 --- a/drivers/extcon/extcon-max77693.c +++ b/drivers/extcon/extcon-max77693.c | |||
@@ -1066,7 +1066,7 @@ static int max77693_muic_probe(struct platform_device *pdev) | |||
1066 | } | 1066 | } |
1067 | 1067 | ||
1068 | /* Register input device for button of dock device */ | 1068 | /* Register input device for button of dock device */ |
1069 | info->dock = input_allocate_device(); | 1069 | info->dock = devm_input_allocate_device(&pdev->dev); |
1070 | if (!info->dock) { | 1070 | if (!info->dock) { |
1071 | dev_err(&pdev->dev, "%s: failed to allocate input\n", __func__); | 1071 | dev_err(&pdev->dev, "%s: failed to allocate input\n", __func__); |
1072 | return -ENOMEM; | 1072 | return -ENOMEM; |