Commit 02d72eef authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman

staging: mt7621-pci: make some function static

There are some functions in driver code that can be declared
'static'. Just do it.
Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b9e50d0c
...@@ -214,7 +214,7 @@ write_config(struct mt7621_pcie *pcie, unsigned int dev, u32 reg, u32 val) ...@@ -214,7 +214,7 @@ write_config(struct mt7621_pcie *pcie, unsigned int dev, u32 reg, u32 val)
pcie_write(pcie, val, RALINK_PCI_CONFIG_DATA); pcie_write(pcie, val, RALINK_PCI_CONFIG_DATA);
} }
void static void
set_pcie_phy(struct mt7621_pcie *pcie, u32 offset, set_pcie_phy(struct mt7621_pcie *pcie, u32 offset,
int start_b, int bits, int val) int start_b, int bits, int val)
{ {
...@@ -225,7 +225,7 @@ set_pcie_phy(struct mt7621_pcie *pcie, u32 offset, ...@@ -225,7 +225,7 @@ set_pcie_phy(struct mt7621_pcie *pcie, u32 offset,
pcie_write(pcie, reg, offset); pcie_write(pcie, reg, offset);
} }
void static void
bypass_pipe_rst(struct mt7621_pcie *pcie) bypass_pipe_rst(struct mt7621_pcie *pcie)
{ {
/* PCIe Port 0 */ /* PCIe Port 0 */
...@@ -239,7 +239,7 @@ bypass_pipe_rst(struct mt7621_pcie *pcie) ...@@ -239,7 +239,7 @@ bypass_pipe_rst(struct mt7621_pcie *pcie)
set_pcie_phy(pcie, (RALINK_PCIEPHY_P2_CTL_OFFSET + 0x02c), 4, 1, 0x01); // rg_pe1_pipe_cmd_frc[4] set_pcie_phy(pcie, (RALINK_PCIEPHY_P2_CTL_OFFSET + 0x02c), 4, 1, 0x01); // rg_pe1_pipe_cmd_frc[4]
} }
void static void
set_phy_for_ssc(struct mt7621_pcie *pcie) set_phy_for_ssc(struct mt7621_pcie *pcie)
{ {
unsigned long reg = rt_sysc_r32(SYSC_REG_SYSTEM_CONFIG0); unsigned long reg = rt_sysc_r32(SYSC_REG_SYSTEM_CONFIG0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment