Commit d981e7b
spi: pci1xxxx: Use non-hybrid PCI devres API
pci1xxxx enables its PCI device with pcim_enable_device(). This,
implicitly, switches the function pci_request_regions() into managed
mode, where it becomes a devres function.
The PCI subsystem wants to remove this hybrid nature from its
interfaces. To do so, users of the aforementioned combination of
functions must be ported to non-hybrid functions.
Moreover, since both functions are already managed in this driver, the
call to pci_release_regions() is unnecessary.
Remove the call to pci_release_regions().
Replace the call to sometimes-managed pci_request_regions() with one to
the always-managed pcim_request_all_regions().
Signed-off-by: Philipp Stanner <phasta@kernel.org>
Link: https://patch.msgid.link/20250417083902.23483-4-phasta@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent 23812bb commit d981e7b
1 file changed
Lines changed: 8 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
744 | | - | |
| 744 | + | |
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
| 749 | + | |
| 750 | + | |
753 | 751 | | |
754 | 752 | | |
755 | 753 | | |
756 | 754 | | |
757 | 755 | | |
758 | | - | |
| 756 | + | |
759 | 757 | | |
760 | 758 | | |
761 | 759 | | |
| |||
773 | 771 | | |
774 | 772 | | |
775 | 773 | | |
776 | | - | |
777 | | - | |
| 774 | + | |
778 | 775 | | |
779 | 776 | | |
780 | 777 | | |
781 | 778 | | |
782 | | - | |
| 779 | + | |
783 | 780 | | |
784 | 781 | | |
785 | 782 | | |
| |||
808 | 805 | | |
809 | 806 | | |
810 | 807 | | |
811 | | - | |
812 | | - | |
| 808 | + | |
813 | 809 | | |
814 | 810 | | |
815 | 811 | | |
| |||
828 | 824 | | |
829 | 825 | | |
830 | 826 | | |
831 | | - | |
| 827 | + | |
832 | 828 | | |
833 | 829 | | |
834 | 830 | | |
835 | 831 | | |
836 | | - | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | 832 | | |
841 | 833 | | |
842 | 834 | | |
| |||
0 commit comments