diff options
author | Jan Beulich <JBeulich@suse.com> | 2016-07-06 02:56:27 -0400 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2016-07-06 05:35:37 -0400 |
commit | 6c6e4caa2006ab82587a3648967314ec92569a98 (patch) | |
tree | 8eb1d47d23c65f5f05e621a531b3b0ffc4a24533 /drivers/xen | |
parent | 585423c8c4d2f39a2c299bc6dd16433e6141fba5 (diff) |
xen-pciback: drop unused function parameter of read_dev_bar()
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/xen-pciback/conf_space_header.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/xen/xen-pciback/conf_space_header.c b/drivers/xen/xen-pciback/conf_space_header.c index 9ead1c2ff1dd..258d99dd2151 100644 --- a/drivers/xen/xen-pciback/conf_space_header.c +++ b/drivers/xen/xen-pciback/conf_space_header.c | |||
@@ -210,8 +210,7 @@ static int bar_read(struct pci_dev *dev, int offset, u32 * value, void *data) | |||
210 | } | 210 | } |
211 | 211 | ||
212 | static inline void read_dev_bar(struct pci_dev *dev, | 212 | static inline void read_dev_bar(struct pci_dev *dev, |
213 | struct pci_bar_info *bar_info, int offset, | 213 | struct pci_bar_info *bar_info, int offset) |
214 | u32 len_mask) | ||
215 | { | 214 | { |
216 | int pos; | 215 | int pos; |
217 | struct resource *res = dev->resource; | 216 | struct resource *res = dev->resource; |
@@ -248,7 +247,7 @@ static void *bar_init(struct pci_dev *dev, int offset) | |||
248 | if (!bar) | 247 | if (!bar) |
249 | return ERR_PTR(-ENOMEM); | 248 | return ERR_PTR(-ENOMEM); |
250 | 249 | ||
251 | read_dev_bar(dev, bar, offset, ~0); | 250 | read_dev_bar(dev, bar, offset); |
252 | 251 | ||
253 | return bar; | 252 | return bar; |
254 | } | 253 | } |
@@ -260,7 +259,7 @@ static void *rom_init(struct pci_dev *dev, int offset) | |||
260 | if (!bar) | 259 | if (!bar) |
261 | return ERR_PTR(-ENOMEM); | 260 | return ERR_PTR(-ENOMEM); |
262 | 261 | ||
263 | read_dev_bar(dev, bar, offset, ~PCI_ROM_ADDRESS_ENABLE); | 262 | read_dev_bar(dev, bar, offset); |
264 | 263 | ||
265 | return bar; | 264 | return bar; |
266 | } | 265 | } |