mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-08 07:38:10 +00:00
[SPARC64]: Fix section mismatch warnings in arch/sparc64/kernel/pci.c
apb_calc_first_last(), apb_fake_ranges(), pci_of_scan_bus(), of_scan_pci_bridge(), pci_of_scan_bus(), and pci_scan_one_pbm() should all be __devinit. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
23abc9ec6a
commit
a6009dda97
1 changed files with 14 additions and 14 deletions
|
@ -477,7 +477,7 @@ struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm,
|
||||||
return dev;
|
return dev;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __init apb_calc_first_last(u8 map, u32 *first_p, u32 *last_p)
|
static void __devinit apb_calc_first_last(u8 map, u32 *first_p, u32 *last_p)
|
||||||
{
|
{
|
||||||
u32 idx, first, last;
|
u32 idx, first, last;
|
||||||
|
|
||||||
|
@ -506,7 +506,7 @@ static void __init pci_resource_adjust(struct resource *res,
|
||||||
/* Cook up fake bus resources for SUNW,simba PCI bridges which lack
|
/* Cook up fake bus resources for SUNW,simba PCI bridges which lack
|
||||||
* a proper 'ranges' property.
|
* a proper 'ranges' property.
|
||||||
*/
|
*/
|
||||||
static void __init apb_fake_ranges(struct pci_dev *dev,
|
static void __devinit apb_fake_ranges(struct pci_dev *dev,
|
||||||
struct pci_bus *bus,
|
struct pci_bus *bus,
|
||||||
struct pci_pbm_info *pbm)
|
struct pci_pbm_info *pbm)
|
||||||
{
|
{
|
||||||
|
@ -531,13 +531,13 @@ static void __init apb_fake_ranges(struct pci_dev *dev,
|
||||||
pci_resource_adjust(res, &pbm->mem_space);
|
pci_resource_adjust(res, &pbm->mem_space);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __init pci_of_scan_bus(struct pci_pbm_info *pbm,
|
static void __devinit pci_of_scan_bus(struct pci_pbm_info *pbm,
|
||||||
struct device_node *node,
|
struct device_node *node,
|
||||||
struct pci_bus *bus);
|
struct pci_bus *bus);
|
||||||
|
|
||||||
#define GET_64BIT(prop, i) ((((u64) (prop)[(i)]) << 32) | (prop)[(i)+1])
|
#define GET_64BIT(prop, i) ((((u64) (prop)[(i)]) << 32) | (prop)[(i)+1])
|
||||||
|
|
||||||
void __devinit of_scan_pci_bridge(struct pci_pbm_info *pbm,
|
static void __devinit of_scan_pci_bridge(struct pci_pbm_info *pbm,
|
||||||
struct device_node *node,
|
struct device_node *node,
|
||||||
struct pci_dev *dev)
|
struct pci_dev *dev)
|
||||||
{
|
{
|
||||||
|
@ -638,7 +638,7 @@ simba_cont:
|
||||||
pci_of_scan_bus(pbm, node, bus);
|
pci_of_scan_bus(pbm, node, bus);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __init pci_of_scan_bus(struct pci_pbm_info *pbm,
|
static void __devinit pci_of_scan_bus(struct pci_pbm_info *pbm,
|
||||||
struct device_node *node,
|
struct device_node *node,
|
||||||
struct pci_bus *bus)
|
struct pci_bus *bus)
|
||||||
{
|
{
|
||||||
|
@ -742,7 +742,7 @@ int pci_host_bridge_write_pci_cfg(struct pci_bus *bus_dev,
|
||||||
return PCIBIOS_SUCCESSFUL;
|
return PCIBIOS_SUCCESSFUL;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct pci_bus * __init pci_scan_one_pbm(struct pci_pbm_info *pbm)
|
struct pci_bus * __devinit pci_scan_one_pbm(struct pci_pbm_info *pbm)
|
||||||
{
|
{
|
||||||
struct pci_controller_info *p = pbm->parent;
|
struct pci_controller_info *p = pbm->parent;
|
||||||
struct device_node *node = pbm->prom_node;
|
struct device_node *node = pbm->prom_node;
|
||||||
|
|
Loading…
Add table
Reference in a new issue