Merge "usb: phy: qusb: reset size to zero before getting next property size"
This commit is contained in:
commit
0ac7087247
2 changed files with 6 additions and 0 deletions
|
@ -808,6 +808,7 @@ static int qusb_phy_probe(struct platform_device *pdev)
|
|||
}
|
||||
}
|
||||
|
||||
size = 0;
|
||||
of_get_property(dev->of_node, "qcom,phy-pll-reset-seq", &size);
|
||||
if (size) {
|
||||
qphy->phy_pll_reset_seq = devm_kzalloc(dev,
|
||||
|
@ -830,6 +831,7 @@ static int qusb_phy_probe(struct platform_device *pdev)
|
|||
}
|
||||
}
|
||||
|
||||
size = 0;
|
||||
of_get_property(dev->of_node, "qcom,emu-dcm-reset-seq", &size);
|
||||
if (size) {
|
||||
qphy->emu_dcm_reset_seq = devm_kzalloc(dev,
|
||||
|
@ -852,6 +854,7 @@ static int qusb_phy_probe(struct platform_device *pdev)
|
|||
}
|
||||
}
|
||||
|
||||
size = 0;
|
||||
of_get_property(dev->of_node, "qcom,qusb-phy-init-seq", &size);
|
||||
if (size) {
|
||||
qphy->qusb_phy_init_seq = devm_kzalloc(dev,
|
||||
|
|
|
@ -886,6 +886,7 @@ static int qusb_phy_probe(struct platform_device *pdev)
|
|||
}
|
||||
}
|
||||
|
||||
size = 0;
|
||||
of_get_property(dev->of_node, "qcom,phy-pll-reset-seq", &size);
|
||||
if (size) {
|
||||
qphy->phy_pll_reset_seq = devm_kzalloc(dev,
|
||||
|
@ -907,6 +908,7 @@ static int qusb_phy_probe(struct platform_device *pdev)
|
|||
}
|
||||
}
|
||||
|
||||
size = 0;
|
||||
of_get_property(dev->of_node, "qcom,emu-dcm-reset-seq", &size);
|
||||
if (size) {
|
||||
qphy->emu_dcm_reset_seq = devm_kzalloc(dev,
|
||||
|
@ -928,6 +930,7 @@ static int qusb_phy_probe(struct platform_device *pdev)
|
|||
}
|
||||
}
|
||||
|
||||
size = 0;
|
||||
of_get_property(dev->of_node, "qcom,qusb-phy-init-seq", &size);
|
||||
if (size) {
|
||||
qphy->qusb_phy_init_seq = devm_kzalloc(dev,
|
||||
|
|
Loading…
Add table
Reference in a new issue