File tree Expand file tree Collapse file tree 4 files changed +4
-15
lines changed Expand file tree Collapse file tree 4 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -225,10 +225,8 @@ int cdns_pcie_host_setup(struct cdns_pcie_rc *rc)
225
225
226
226
res = platform_get_resource_byname (pdev , IORESOURCE_MEM , "cfg" );
227
227
rc -> cfg_base = devm_pci_remap_cfg_resource (dev , res );
228
- if (IS_ERR (rc -> cfg_base )) {
229
- dev_err (dev , "missing \"cfg\"\n" );
228
+ if (IS_ERR (rc -> cfg_base ))
230
229
return PTR_ERR (rc -> cfg_base );
231
- }
232
230
rc -> cfg_res = res ;
233
231
234
232
res = platform_get_resource_byname (pdev , IORESOURCE_MEM , "mem" );
Original file line number Diff line number Diff line change @@ -67,13 +67,8 @@ static int al_pcie_init(struct pci_config_window *cfg)
67
67
dev_dbg (dev , "Root port dbi res: %pR\n" , res );
68
68
69
69
al_pcie -> dbi_base = devm_pci_remap_cfg_resource (dev , res );
70
- if (IS_ERR (al_pcie -> dbi_base )) {
71
- long err = PTR_ERR (al_pcie -> dbi_base );
72
-
73
- dev_err (dev , "couldn't remap dbi base %pR (err:%ld)\n" ,
74
- res , err );
75
- return err ;
76
- }
70
+ if (IS_ERR (al_pcie -> dbi_base ))
71
+ return PTR_ERR (al_pcie -> dbi_base );
77
72
78
73
cfg -> priv = al_pcie ;
79
74
@@ -408,10 +403,8 @@ static int al_pcie_probe(struct platform_device *pdev)
408
403
409
404
dbi_res = platform_get_resource_byname (pdev , IORESOURCE_MEM , "dbi" );
410
405
pci -> dbi_base = devm_pci_remap_cfg_resource (dev , dbi_res );
411
- if (IS_ERR (pci -> dbi_base )) {
412
- dev_err (dev , "couldn't remap dbi base %pR\n" , dbi_res );
406
+ if (IS_ERR (pci -> dbi_base ))
413
407
return PTR_ERR (pci -> dbi_base );
414
- }
415
408
416
409
ecam_res = platform_get_resource_byname (pdev , IORESOURCE_MEM , "config" );
417
410
if (!ecam_res ) {
Original file line number Diff line number Diff line change @@ -317,7 +317,6 @@ static int armada8k_pcie_probe(struct platform_device *pdev)
317
317
base = platform_get_resource_byname (pdev , IORESOURCE_MEM , "ctrl" );
318
318
pci -> dbi_base = devm_pci_remap_cfg_resource (dev , base );
319
319
if (IS_ERR (pci -> dbi_base )) {
320
- dev_err (dev , "couldn't remap regs base %p\n" , base );
321
320
ret = PTR_ERR (pci -> dbi_base );
322
321
goto fail_clkreg ;
323
322
}
Original file line number Diff line number Diff line change @@ -273,7 +273,6 @@ static int spear13xx_pcie_probe(struct platform_device *pdev)
273
273
dbi_base = platform_get_resource_byname (pdev , IORESOURCE_MEM , "dbi" );
274
274
pci -> dbi_base = devm_pci_remap_cfg_resource (dev , dbi_base );
275
275
if (IS_ERR (pci -> dbi_base )) {
276
- dev_err (dev , "couldn't remap dbi base %p\n" , dbi_base );
277
276
ret = PTR_ERR (pci -> dbi_base );
278
277
goto fail_clk ;
279
278
}
You can’t perform that action at this time.
0 commit comments