diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-02-13 20:31:48 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-02-13 20:31:48 +0100 |
commit | f5a25b2639e0889e02db5e86080559019c567a1f (patch) | |
tree | 00f34fe4aeec434f2770d70e9de2bec128e7b465 /drivers/pci/pcie-designware-host.c | |
parent | 9a9326ef9a37c838edeeb960232b0c9f1126bda0 (diff) | |
parent | 3701a58eb9c81820d955d63c7a03e873baf86cae (diff) | |
download | barebox-f5a25b2639e0889e02db5e86080559019c567a1f.tar.gz barebox-f5a25b2639e0889e02db5e86080559019c567a1f.tar.xz |
Merge branch 'for-next/pci'
Diffstat (limited to 'drivers/pci/pcie-designware-host.c')
-rw-r--r-- | drivers/pci/pcie-designware-host.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/pci/pcie-designware-host.c b/drivers/pci/pcie-designware-host.c index 63ce3696d1..7a95b2a092 100644 --- a/drivers/pci/pcie-designware-host.c +++ b/drivers/pci/pcie-designware-host.c @@ -29,7 +29,7 @@ #include <abort.h> -static struct pci_ops dw_pcie_ops; +static const struct pci_ops dw_pcie_ops; static unsigned long global_io_offset; static int dw_pcie_rd_own_conf(struct pcie_port *pp, int where, int size, @@ -335,15 +335,9 @@ static int dw_pcie_wr_conf(struct pci_bus *bus, u32 devfn, return ret; } -static int dw_pcie_res_start(struct pci_bus *bus, resource_size_t res_addr) -{ - return res_addr; -} - -static struct pci_ops dw_pcie_ops = { +static const struct pci_ops dw_pcie_ops = { .read = dw_pcie_rd_conf, .write = dw_pcie_wr_conf, - .res_start = dw_pcie_res_start, }; static u8 dw_pcie_iatu_unroll_enabled(struct dw_pcie *pci) |