diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-31 19:44:43 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-31 19:44:43 -0500 |
commit | df9d1e8a4379119cbc47c474f168b5103e404e17 (patch) | |
tree | 4cb583dd397985c80ebb0e67f9ac566330477929 /drivers/pci | |
parent | c03f6bfc9f4fbeee14abef81ece67e39150a1ab1 (diff) |
pci: avoid compiler warning in quirks.c
Introduced by commit 5b889bf23 ("PCI: Fix build if quirks are not
enabled"), which made the pci_dev_reset_methods[] array static and
'const', but didn't then change the code to match, and use a const
pointer when moving it to quirks.c.
Trivially fixed by just adding the required 'const' to the iterator
variable.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/quirks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 5c449fc4db19..c74694345b6e 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c | |||
@@ -2694,7 +2694,7 @@ static const struct pci_dev_reset_methods pci_dev_reset_methods[] = { | |||
2694 | 2694 | ||
2695 | int pci_dev_specific_reset(struct pci_dev *dev, int probe) | 2695 | int pci_dev_specific_reset(struct pci_dev *dev, int probe) |
2696 | { | 2696 | { |
2697 | struct pci_dev_reset_methods *i; | 2697 | const struct pci_dev_reset_methods *i; |
2698 | 2698 | ||
2699 | for (i = pci_dev_reset_methods; i->reset; i++) { | 2699 | for (i = pci_dev_reset_methods; i->reset; i++) { |
2700 | if ((i->vendor == dev->vendor || | 2700 | if ((i->vendor == dev->vendor || |