]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
microblaze: Permit pcibios_set_master override
authorMichal Simek <michal.simek@xilinx.com>
Wed, 20 Nov 2013 13:06:39 +0000 (14:06 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 27 Mar 2019 13:46:21 +0000 (14:46 +0100)
This function is also available in pcie driver
and it is causing compilation failure where both
functions are defined.
Use weak attribute and override this default one.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/pci/pci-common.c

index 2ffd171af8b60b463e408efc2ac69fb89e61a20c..f8a0cb8ae65b812555c0e90674132a7e4fe7620f 100644 (file)
@@ -145,7 +145,7 @@ struct pci_controller *pci_find_hose_for_OF_device(struct device_node *node)
        return NULL;
 }
 
-void pcibios_set_master(struct pci_dev *dev)
+void __weak pcibios_set_master(struct pci_dev *dev)
 {
        /* No special bus mastering setup handling */
 }