]> git.baikalelectronics.ru Git - kernel.git/commit
pci: avoid compiler warning in quirks.c
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 1 Jan 2010 00:44:43 +0000 (16:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 1 Jan 2010 00:44:43 +0000 (16:44 -0800)
commit6b5b9882a5f5cb5604046e317a485b2dba431219
tree4cb583dd397985c80ebb0e67f9ac566330477929
parentf764bccfff8d4b6a3718c9f84056cf6c0822f84a
pci: avoid compiler warning in quirks.c

Introduced by commit 7dbf12332 ("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>
drivers/pci/quirks.c