diff options
author | Nick Child <nick.child@ibm.com> | 2021-12-16 17:00:29 -0500 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-12-23 22:33:16 +1100 |
commit | 1e3d992d213928851f7ddec6f150fb54fe759b64 (patch) | |
tree | cdf34ae4ff35981b218b4e0f78dac88683fc090e /arch/powerpc/platforms/4xx/pci.c | |
parent | powerpc/ps3: Add __init attribute to eligible functions (diff) | |
download | linux-dev-1e3d992d213928851f7ddec6f150fb54fe759b64.tar.xz linux-dev-1e3d992d213928851f7ddec6f150fb54fe759b64.zip |
powerpc/4xx: Add __init attribute to eligible functions
Some functions defined in 'arch/powerpc/platforms/4xx' are deserving of an
`__init` macro attribute. These functions are only called by other
initialization functions and therefore should inherit the attribute.
Signed-off-by: Nick Child <nick.child@ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211216220035.605465-15-nick.child@ibm.com
Diffstat (limited to '')
-rw-r--r-- | arch/powerpc/platforms/4xx/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/4xx/pci.c b/arch/powerpc/platforms/4xx/pci.c index c13d64c3b019..24f41e178cbc 100644 --- a/arch/powerpc/platforms/4xx/pci.c +++ b/arch/powerpc/platforms/4xx/pci.c @@ -1273,7 +1273,7 @@ static int __init ppc405ex_pciex_core_init(struct device_node *np) return 2; } -static void ppc405ex_pcie_phy_reset(struct ppc4xx_pciex_port *port) +static void __init ppc405ex_pcie_phy_reset(struct ppc4xx_pciex_port *port) { /* Assert the PE0_PHY reset */ mtdcri(SDR0, port->sdr_base + PESDRn_RCSSET, 0x01010000); |