File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
drivers/pci/controller/dwc Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -409,16 +409,21 @@ static int histb_pcie_probe(struct platform_device *pdev)
409
409
ret = histb_pcie_host_enable (pp );
410
410
if (ret ) {
411
411
dev_err (dev , "failed to enable host\n" );
412
- return ret ;
412
+ goto err_exit_phy ;
413
413
}
414
414
415
415
ret = dw_pcie_host_init (pp );
416
416
if (ret ) {
417
417
dev_err (dev , "failed to initialize host\n" );
418
- return ret ;
418
+ goto err_exit_phy ;
419
419
}
420
420
421
421
return 0 ;
422
+
423
+ err_exit_phy :
424
+ phy_exit (hipcie -> phy );
425
+
426
+ return ret ;
422
427
}
423
428
424
429
static void histb_pcie_remove (struct platform_device * pdev )
@@ -427,8 +432,7 @@ static void histb_pcie_remove(struct platform_device *pdev)
427
432
428
433
histb_pcie_host_disable (hipcie );
429
434
430
- if (hipcie -> phy )
431
- phy_exit (hipcie -> phy );
435
+ phy_exit (hipcie -> phy );
432
436
}
433
437
434
438
static const struct of_device_id histb_pcie_of_match [] = {
You can’t perform that action at this time.
0 commit comments