Skip to content

Commit

Permalink
extcon: max77693: Convert to devm_input_allocate_device()
Browse files Browse the repository at this point in the history
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Chanwoo Choi authored and Greg Kroah-Hartman committed Feb 13, 2013
1 parent fd11606 commit eff7d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/extcon/extcon-max77693.c
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ static int max77693_muic_probe(struct platform_device *pdev)
}

/* Register input device for button of dock device */
info->dock = input_allocate_device();
info->dock = devm_input_allocate_device(&pdev->dev);
if (!info->dock) {
dev_err(&pdev->dev, "%s: failed to allocate input\n", __func__);
return -ENOMEM;
Expand Down

0 comments on commit eff7d74

Please sign in to comment.