Browse Source

extcon: max77693: Convert to devm_input_allocate_device()

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>
Chanwoo Choi 12 years ago
parent
commit
eff7d74f5b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/extcon/extcon-max77693.c

+ 1 - 1
drivers/extcon/extcon-max77693.c

@@ -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;