Commit 64706ba
PCI: brcmstb: Use common error handling code in brcm_pcie_probe()
Refactor the error handling in the bottom half of the probe function
for readability.
The invocation of clk_prepare_enable() is moved lower in the function
and this simplifies a couple of return paths. The dev_err_probe() is
also used when it is apt.
Link: https://lore.kernel.org/linux-pci/20240815225731.40276-5-james.quinlan@broadcom.com
Signed-off-by: Jim Quinlan <james.quinlan@broadcom.com>
[kwilczynski: commit log]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>1 parent 56d0202 commit 64706ba
1 file changed
Lines changed: 12 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1613 | 1613 | | |
1614 | 1614 | | |
1615 | 1615 | | |
1616 | | - | |
1617 | | - | |
1618 | | - | |
1619 | | - | |
1620 | | - | |
1621 | 1616 | | |
1622 | | - | |
1623 | | - | |
| 1617 | + | |
1624 | 1618 | | |
1625 | | - | |
| 1619 | + | |
1626 | 1620 | | |
1627 | | - | |
1628 | | - | |
| 1621 | + | |
1629 | 1622 | | |
1630 | | - | |
1631 | 1623 | | |
1632 | | - | |
| 1624 | + | |
1633 | 1625 | | |
1634 | | - | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
1635 | 1633 | | |
1636 | 1634 | | |
1637 | 1635 | | |
| |||
1678 | 1676 | | |
1679 | 1677 | | |
1680 | 1678 | | |
| 1679 | + | |
1681 | 1680 | | |
1682 | 1681 | | |
1683 | 1682 | | |
| |||
0 commit comments