* Reparent resource children of pr that conflict with res
* under res, and make res replace those children.
*/
-static int __init reparent_resources(struct resource *parent,
+static int reparent_resources(struct resource *parent,
struct resource *res)
{
struct resource *p, **pp;
* rest of the code later, for now, keep it as-is as our main
* resource allocation function doesn't deal with sub-trees yet.
*/
-void __devinit pcibios_claim_one_bus(struct pci_bus *bus)
+void pcibios_claim_one_bus(struct pci_bus *bus)
{
struct pci_dev *dev;
struct pci_bus *child_bus;
list_for_each_entry(child_bus, &bus->children, node)
pcibios_claim_one_bus(child_bus);
}
-EXPORT_SYMBOL_GPL(pcibios_claim_one_bus);
/* pcibios_finish_adding_to_bus
static struct xilinx_axipcie_port *xilinx_axipcie_ports;
static unsigned int xilinx_axipcie_port_count;
-static struct of_device_id xilinx_axipcie_match[] __devinitdata = {
+static const struct of_device_id xilinx_axipcie_match[] = {
{ .compatible = "xlnx,axi-pcie-1.05.a" ,},
{}
};
static int __init xilinx_find_axipcie_nodes(void)
{
struct device_node *np;
- struct of_device_id *matches = xilinx_axipcie_match;
+ const struct of_device_id *matches = xilinx_axipcie_match;
int error = 0;
printk(KERN_INFO "Initialising Xilinx PCI Express root"