From: Charles Keepax Date: Thu, 29 May 2014 15:27:51 +0000 (+0100) Subject: extcon: arizona: Remove duplicate set of input parent device X-Git-Tag: Ubuntu-snapdragon-4.4.0-1050.54~9898^2^2~11 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=5a8844b596d5a6008b14d2677b426ac7ed7d260b;p=mirror_ubuntu-artful-kernel.git extcon: arizona: Remove duplicate set of input parent device devm_input_allocate_device already sets the parent device to be that passed to it, we also set this manually in arizona_extcon_probe. This patch removes the redundant set from arizona_extcon_probe. Signed-off-by: Charles Keepax Signed-off-by: Chanwoo Choi --- diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c index cf907430a698..21ee055b1b77 100644 --- a/drivers/extcon/extcon-arizona.c +++ b/drivers/extcon/extcon-arizona.c @@ -1186,7 +1186,6 @@ static int arizona_extcon_probe(struct platform_device *pdev) info->input->name = "Headset"; info->input->phys = "arizona/extcon"; - info->input->dev.parent = &pdev->dev; if (pdata->num_micd_configs) { info->micd_modes = pdata->micd_configs;