]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
extcon: arizona: Remove duplicate set of input parent device
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thu, 29 May 2014 15:27:51 +0000 (16:27 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 16 Jun 2014 04:33:19 +0000 (13:33 +0900)
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 <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-arizona.c

index cf907430a69854cabe6750a1b1cffd2cc59df3fc..21ee055b1b778262cbfe0add39a7790528f4077c 100644 (file)
@@ -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;