diff options
author | Nick Child <nick.child@ibm.com> | 2021-12-17 01:00:24 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-12-23 14:33:14 +0300 |
commit | e37e06af9b0d6b7828159455d33f8ef45c456460 (patch) | |
tree | 31cedff10ba1b650978f6edf2eb603ef18005aae /arch/powerpc/platforms/pasemi/pasemi.h | |
parent | d3aa3c5edf0cb7ac0b0b5b0d144bba60b0ee77da (diff) | |
download | linux-e37e06af9b0d6b7828159455d33f8ef45c456460.tar.xz |
powerpc/pasemi: Add __init attribute to eligible functions
Some functions defined in 'arch/powerpc/platforms/pasemi' are deserving
of an `__init` macro attribute. These functions are only called by other
initialization functions and therefore should inherit the attribute.
Also, change function declarations in header files to include `__init`.
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-10-nick.child@ibm.com
Diffstat (limited to 'arch/powerpc/platforms/pasemi/pasemi.h')
-rw-r--r-- | arch/powerpc/platforms/pasemi/pasemi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pasemi/pasemi.h b/arch/powerpc/platforms/pasemi/pasemi.h index 70b56048ed1b..3f277a200fd8 100644 --- a/arch/powerpc/platforms/pasemi/pasemi.h +++ b/arch/powerpc/platforms/pasemi/pasemi.h @@ -7,7 +7,7 @@ extern void pas_pci_init(void); extern void pas_pci_irq_fixup(struct pci_dev *dev); extern void pas_pci_dma_dev_setup(struct pci_dev *dev); -extern void __iomem *pasemi_pci_getcfgaddr(struct pci_dev *dev, int offset); +void __iomem *__init pasemi_pci_getcfgaddr(struct pci_dev *dev, int offset); extern void __init pasemi_map_registers(void); |