From: Chanwoo Choi Date: Wed, 13 Feb 2013 09:35:05 +0000 (+0900) Subject: extcon: max77693: Convert to devm_input_allocate_device() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eff7d74f5b88ef31ac47c6d96b1494db199705f5;p=linux-beck.git extcon: max77693: Convert to devm_input_allocate_device() Signed-off-by: Chanwoo Choi Signed-off-by: Myungjoo Ham Signed-off-by: Greg Kroah-Hartman --- 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) } /* 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;