X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=drivers%2Fusb%2Fphy%2Fphy-omap-otg.c;h=c4bf2de6d14ec3a47259f06977e27ea1f3329ed1;hb=4ce01c518ebf6e3818abf5f4a9e1a1ef9d52f232;hp=1270906ccb95808714d174f0461a081c8d1d1cc6;hpb=57e6bbcb4beb4c87aa93e78a1db08fdaab9ee65f;p=linux-2.6-block.git diff --git a/drivers/usb/phy/phy-omap-otg.c b/drivers/usb/phy/phy-omap-otg.c index 1270906ccb95..c4bf2de6d14e 100644 --- a/drivers/usb/phy/phy-omap-otg.c +++ b/drivers/usb/phy/phy-omap-otg.c @@ -105,7 +105,6 @@ static int omap_otg_probe(struct platform_device *pdev) extcon = extcon_get_extcon_dev(config->extcon); if (!extcon) return -EPROBE_DEFER; - otg_dev->extcon = extcon; otg_dev = devm_kzalloc(&pdev->dev, sizeof(*otg_dev), GFP_KERNEL); if (!otg_dev) @@ -115,6 +114,7 @@ static int omap_otg_probe(struct platform_device *pdev) if (IS_ERR(otg_dev->base)) return PTR_ERR(otg_dev->base); + otg_dev->extcon = extcon; otg_dev->id_nb.notifier_call = omap_otg_id_notifier; otg_dev->vbus_nb.notifier_call = omap_otg_vbus_notifier;