diff options
author | Ramneek Mehresh <ramneek.mehresh@freescale.com> | 2014-12-05 12:26:02 (GMT) |
---|---|---|
committer | Xie Xiaobo <xiaobo.xie@nxp.com> | 2017-09-25 07:25:28 (GMT) |
commit | 2a88e18901502a783a9a8877175bc86802935799 (patch) | |
tree | 01f95ebceb1f80c502e6288d358a9172284880e0 /drivers | |
parent | f60c9965302a0dc9eeb46fbc35938fd146f45d9b (diff) | |
download | linux-2a88e18901502a783a9a8877175bc86802935799.tar.xz |
usb: gadget: Fix kernel boot dump for usb gadegt drv
Copy of_node property only for host mode so as to fix gadget mode
kernel dump messages
Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/host/fsl-mph-dr-of.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/fsl-mph-dr-of.c b/drivers/usb/host/fsl-mph-dr-of.c index e95639e..5b980b4 100644 --- a/drivers/usb/host/fsl-mph-dr-of.c +++ b/drivers/usb/host/fsl-mph-dr-of.c @@ -103,7 +103,8 @@ static struct platform_device *fsl_usb2_device_register( else dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); - pdev->dev.of_node = ofdev->dev.of_node; + if (pdata->operating_mode != FSL_USB2_DR_DEVICE) + pdev->dev.of_node = ofdev->dev.of_node; retval = platform_device_add_data(pdev, pdata, sizeof(*pdata)); if (retval) |