MIPS: pci-rt2880: remove unneeded locks
authorIlya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Wed, 14 Apr 2021 03:12:34 +0000 (20:12 -0700)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 16 Apr 2021 07:15:40 +0000 (09:15 +0200)
commit791a7be27e76edfe8269e9fce2598cc58defa405
tree07dd1ce60df093b053543349e6f719f7acb43557
parent8e98b697006d749d745d3b174168a877bb96c500
MIPS: pci-rt2880: remove unneeded locks

Mirror pci-rt3883 fix from commit e5067c718b3a ("MIPS: pci-rt3883:
Remove odd locking in PCI config space access code"). pci-rt2880 shares
the driver layout with pci-rt3883 and the same reasons apply.

Caller (generic PCI code) already does proper locking, so no need to add
another one here. Local PCI read/write functions are never called
simultaneously, also they do not require synchronization with the PCI
controller ops, since they are used before the controller registration.

Suggested-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Reviewed-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/pci/pci-rt2880.c