summaryrefslogtreecommitdiffstats
path: root/drivers/ptp
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2023-09-27 14:55:10 +0200
committerJakub Kicinski <kuba@kernel.org>2023-10-04 22:10:41 +0200
commit24a0fbf48cbecc6fd8cc13eecdf70e8373933314 (patch)
tree254b592e04fb8c66d20f731d221ffec904db6084 /drivers/ptp
parentnet: dsa: mt753x: remove mt753x_phylink_pcs_link_up() (diff)
downloadlinux-24a0fbf48cbecc6fd8cc13eecdf70e8373933314.tar.xz
linux-24a0fbf48cbecc6fd8cc13eecdf70e8373933314.zip
ptp: ocp: fix error code in probe()
There is a copy and paste error so this uses a valid pointer instead of an error pointer. Fixes: 09eeb3aecc6c ("ptp_ocp: implement DPLL ops") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev> Link: https://lore.kernel.org/r/5c581336-0641-48bd-88f7-51984c3b1f79@moroto.mountain Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/ptp')
-rw-r--r--drivers/ptp/ptp_ocp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c
index 88d60a9b5731..d39afe091a7b 100644
--- a/drivers/ptp/ptp_ocp.c
+++ b/drivers/ptp/ptp_ocp.c
@@ -4453,7 +4453,7 @@ ptp_ocp_probe(struct pci_dev *pdev, const struct pci_device_id *id)
for (i = 0; i < OCP_SMA_NUM; i++) {
bp->sma[i].dpll_pin = dpll_pin_get(clkid, i, THIS_MODULE, &bp->sma[i].dpll_prop);
if (IS_ERR(bp->sma[i].dpll_pin)) {
- err = PTR_ERR(bp->dpll);
+ err = PTR_ERR(bp->sma[i].dpll_pin);
goto out_dpll;
}