[PATCH] usb: phy: phy-fsl-usb: Make structure fsl_otg_initdata constant

2019-08-19 Thread Nishka Dasgupta
make fsl_otg_initdata constant to protect it from unintended modification. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta --- drivers/usb/phy/phy-fsl-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/phy/phy-fsl-usb.c b/drivers/usb/phy/phy-fsl-usb.c

[PATCH] usb: dwc3: qcom: Add of_node_put() before return in register function

2019-08-19 Thread Nishka Dasgupta
statements to instead save the required return value in existing variable ret and then point to this label. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta --- drivers/usb/dwc3/dwc3-qcom.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/usb/dwc3/dwc3

[PATCH 1/2] usb: dwc3: st: Add of_node_put() before return in probe function

2019-08-19 Thread Nishka Dasgupta
Coccinelle. Signed-off-by: Nishka Dasgupta --- drivers/usb/dwc3/dwc3-st.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-st.c b/drivers/usb/dwc3/dwc3-st.c index 16081383c401..6f52c749cd58 100644 --- a/drivers/usb/dwc3/dwc3-st.c +++ b/drivers/usb/dwc3

[PATCH 2/2] usb: dwc3: st: Add of_dev_put() in probe function

2019-08-19 Thread Nishka Dasgupta
Coccinelle. Signed-off-by: Nishka Dasgupta --- drivers/usb/dwc3/dwc3-st.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/dwc3-st.c b/drivers/usb/dwc3/dwc3-st.c index 6f52c749cd58..c682420f25ca 100644 --- a/drivers/usb/dwc3/dwc3-st.c +++ b/drivers/usb/dwc3/dwc3-st.c