staging: mt7621-pci: factor out 'mt7621_pcie_enable_port' function
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Sun, 4 Nov 2018 10:49:30 +0000 (11:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Nov 2018 19:36:14 +0000 (11:36 -0800)
commit745eeeac68d7834676f023e01b46e40d63f90fab
tree9ff586bb4bcf0c78bfb5fe62917679a2855c1779
parentc8242bef7c02c5fe16cb2d2b7e16f998a64b1604
staging: mt7621-pci: factor out 'mt7621_pcie_enable_port' function

Driver probe function is a mess and shall be refactored a lot. At first
make use of assert and deassert control factoring out a new function
called 'mt7621_pcie_enable_port'.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pci/pci-mt7621.c