Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/block/cpqarray.c: use pci_dev->revision

This driver uses PCI_CLASS_REVISION instead of PCI_REVISION_ID, so it
wasn't converted by commit 44c10138fd4bbc4b6 ("PCI: Change all drivers to
use pci_device->revision").

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Acked-by: Mike Miller <mike.miller@hp.com>
Cc: Chirag Kantharia <chirag.kantharia@hp.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@google.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Sergei Shtylyov and committed by
Jens Axboe
5a3a76e6 e03c8dd1

+1 -1
+1 -1
drivers/block/cpqarray.c
··· 620 620 } 621 621 vendor_id = pdev->vendor; 622 622 device_id = pdev->device; 623 + revision = pdev->revision; 623 624 irq = pdev->irq; 624 625 625 626 for(i=0; i<6; i++) ··· 633 632 } 634 633 635 634 pci_read_config_word(pdev, PCI_COMMAND, &command); 636 - pci_read_config_byte(pdev, PCI_CLASS_REVISION, &revision); 637 635 pci_read_config_byte(pdev, PCI_CACHE_LINE_SIZE, &cache_line_size); 638 636 pci_read_config_byte(pdev, PCI_LATENCY_TIMER, &latency_timer); 639 637