Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 024ba0ad authored by Jack Pham's avatar Jack Pham
Browse files

misc: apq8084_dock: Fix GPIO contention with audio



The docking station detect GPIO is also used by the audio
driver, however only one entity should call gpio_request,
as all subsequent calls will fail. Requesting it here will
cause audio driver to fail to probe. Fix it by not calling
gpio_request().

Change-Id: Iadb9786fcf772d433c4b30026f8afa0bf76e35c3
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 59cf2db6
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -86,10 +86,6 @@ static int apq8084_dock_probe(struct platform_device *pdev)
		return dock->dock_detect;
	}

	ret = devm_gpio_request(dock->dev, dock->dock_detect, "dock_detect");
	if (ret)
		return ret;

	ret = devm_request_irq(&pdev->dev, gpio_to_irq(dock->dock_detect),
				dock_detected, IRQF_TRIGGER_RISING |
				IRQF_TRIGGER_FALLING | IRQF_SHARED,