usb: dwc3: Add disable u2mac linestate check quirk
[oweals/u-boot.git] / drivers / pci / pcie_phytium.c
index 92e281e7c2f7437dd2507ae1dae5efbaf56707dd..51b2171f9fa0039a137155df301cc16430c50cf8 100644 (file)
@@ -75,9 +75,8 @@ static int phytium_pci_skip_dev(pci_dev_t parent)
  * code. Otherwise the address to access will be written to the pointer pointed
  * to by @paddress.
  */
-static int pci_phytium_conf_address(struct udevice *bus, pci_dev_t bdf,
-                                   uint offset,
-                                   void **paddress)
+static int pci_phytium_conf_address(const struct udevice *bus, pci_dev_t bdf,
+                                   uint offset, void **paddress)
 {
        struct phytium_pcie *pcie = dev_get_priv(bus);
        void *addr;
@@ -119,7 +118,7 @@ static int pci_phytium_conf_address(struct udevice *bus, pci_dev_t bdf,
  * space of the device identified by the bus, device & function numbers in @bdf
  * on the PCI bus @bus.
  */
-static int pci_phytium_read_config(struct udevice *bus, pci_dev_t bdf,
+static int pci_phytium_read_config(const struct udevice *bus, pci_dev_t bdf,
                                   uint offset, ulong *valuep,
                                   enum pci_size_t size)
 {