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

Commit 2fe132e9 authored by Sujeet Kumar's avatar Sujeet Kumar
Browse files

USB: phy-msm-usb: Register driver with compatible platform driver



Use platform driver register for hotpluggable device.
platform driver probe may not return -EPROBE_DEFER.
This is incompatible with probe deferring and hence must
not return -EPROBE_DEFER.

Move to platform driver register instead as clocks or
regulators can return -EPROBE_DEFER.

Change-Id: Ie0d20274ebc905859d2dcff934f7c692b0900345
Signed-off-by: default avatarSujeet Kumar <ksujeet@codeaurora.org>
parent c4251672
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -4372,7 +4372,7 @@ struct msm_otg_platform_data *msm_otg_dt_to_pdata(struct platform_device *pdev)
	return pdata;
}

static int __init msm_otg_probe(struct platform_device *pdev)
static int msm_otg_probe(struct platform_device *pdev)
{
	int ret = 0;
	int len = 0;
@@ -5112,6 +5112,7 @@ static struct of_device_id msm_otg_dt_match[] = {
};

static struct platform_driver msm_otg_driver = {
	.probe = msm_otg_probe,
	.remove = msm_otg_remove,
	.driver = {
		.name = DRIVER_NAME,
@@ -5123,7 +5124,7 @@ static struct platform_driver msm_otg_driver = {
	},
};

module_platform_driver_probe(msm_otg_driver, msm_otg_probe);
module_platform_driver(msm_otg_driver);

MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("MSM USB transceiver driver");