Commit b7dec6b
PCI: dwc: ep: Remove deinit() callback from struct dw_pcie_ep_ops
deinit() callback was solely introduced for the pcie-rcar-gen4 driver where
it is used to do platform specific resource deallocation. And this callback
is called right at the end of the dw_pcie_ep_exit() API. So it doesn't
matter whether it is called within or outside of dw_pcie_ep_exit() API.
So let's remove this callback and directly call rcar_gen4_pcie_ep_deinit()
in pcie-rcar-gen4 driver to do resource deallocation after the completion
of dw_pcie_ep_exit() API in rcar_gen4_remove_dw_pcie_ep().
This simplifies the DWC layer.
Link: https://lore.kernel.org/linux-pci/20240327-pci-dbi-rework-v12-3-082625472414@linaro.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>1 parent 7cbebc8 commit b7dec6b
3 files changed
Lines changed: 9 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | 640 | | |
644 | 641 | | |
645 | 642 | | |
| |||
844 | 841 | | |
845 | 842 | | |
846 | 843 | | |
847 | | - | |
| 844 | + | |
848 | 845 | | |
849 | 846 | | |
850 | 847 | | |
| |||
881 | 878 | | |
882 | 879 | | |
883 | 880 | | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | 881 | | |
889 | 882 | | |
890 | 883 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
337 | 336 | | |
338 | 337 | | |
339 | 338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | 357 | | |
361 | 358 | | |
362 | 359 | | |
| |||
410 | 407 | | |
411 | 408 | | |
412 | 409 | | |
413 | | - | |
414 | 410 | | |
415 | 411 | | |
416 | 412 | | |
| |||
420 | 416 | | |
421 | 417 | | |
422 | 418 | | |
| 419 | + | |
423 | 420 | | |
424 | 421 | | |
425 | 422 | | |
426 | 423 | | |
427 | 424 | | |
428 | 425 | | |
429 | | - | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
430 | 431 | | |
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
434 | 435 | | |
| 436 | + | |
435 | 437 | | |
436 | 438 | | |
437 | 439 | | |
| |||
0 commit comments