]> git.itanic.dy.fi Git - linux-stable/commit
staging: mt7621-pci: make use of 'pcie_port_write'
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Mon, 7 Jun 2021 12:01:53 +0000 (14:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jun 2021 12:19:22 +0000 (14:19 +0200)
commit25203e32ce3ef9bfa363cfed7813c4fd7270ce45
treeea30faf268a6e5daecb3ef4e7d15ed1129f6fb92
parent2d3d288f0eaf102c3739ad811fa9727c742a49e0
staging: mt7621-pci: make use of 'pcie_port_write'

Function 'mt7621_pcie_enable_port' is calculating an offset
to write some port related registers. Instead of doing that
just make use of already existent 'pcie_write_port' function
and use virtualy mapped base address with registers. This
increase readability and allow us to remove also two defitions
not used else where.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20210607120153.24989-7-sergio.paracuellos@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pci/pci-mt7621.c