]> git.baikalelectronics.ru Git - kernel.git/commit
ahci/pata_jmicron: match class not function number
authorTejun Heo <htejun@gmail.com>
Mon, 26 Feb 2007 11:24:03 +0000 (20:24 +0900)
committerJeff Garzik <jeff@garzik.org>
Fri, 2 Mar 2007 01:19:45 +0000 (20:19 -0500)
commit1f31f451164a51adffdcefaaaaaa4e439cc9a4a3
tree3fa5c0a00bfdb56a0bdf5974c0b3b61bf2ffa82c
parent4e71be8072c0ec5eafe72cf84a3d4b3317897681
ahci/pata_jmicron: match class not function number

Make jmiron_ata quirk update pdev->class after programming the device
and update ahci and pata_jmicron such that they match class code
instead of checking function number manually.  For ahci, it matches
for vendor and class.  For pata_jmicron, it matches vendor, device and
class as IDE class isn't as well defined as AHCI class.

This makes jmicron device matching more conventional and script
friendly.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/ahci.c
drivers/ata/pata_jmicron.c
drivers/pci/quirks.c