aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/quirks.c
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-02-24 02:46:58 -0500
committerJesse Barnes <jbarnes@virtuousgeek.org>2012-02-24 17:35:16 -0500
commit40c96236bdab60b5879a277270ee209b87fc846f (patch)
tree64839f57343b3c3f3bbbb3a560d8a3eae4717348 /drivers/pci/quirks.c
parent4c5b28e26d3621e188288293ccfe82ea1177499f (diff)
PCI: Use class for quirk for ti816x class fixup
Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/quirks.c')
-rw-r--r--drivers/pci/quirks.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 91733a29a28a..e198589d0990 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -2822,12 +2822,11 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x3c28, vtd_mask_spec_errors);
2822static void __devinit fixup_ti816x_class(struct pci_dev* dev) 2822static void __devinit fixup_ti816x_class(struct pci_dev* dev)
2823{ 2823{
2824 /* TI 816x devices do not have class code set when in PCIe boot mode */ 2824 /* TI 816x devices do not have class code set when in PCIe boot mode */
2825 if (dev->class == PCI_CLASS_NOT_DEFINED) { 2825 dev_info(&dev->dev, "Setting PCI class for 816x PCIe device\n");
2826 dev_info(&dev->dev, "Setting PCI class for 816x PCIe device\n"); 2826 dev->class = PCI_CLASS_MULTIMEDIA_VIDEO;
2827 dev->class = PCI_CLASS_MULTIMEDIA_VIDEO;
2828 }
2829} 2827}
2830DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_TI, 0xb800, fixup_ti816x_class); 2828DECLARE_PCI_FIXUP_CLASS_EARLY(PCI_VENDOR_ID_TI, 0xb800,
2829 PCI_CLASS_NOT_DEFINED, 0, fixup_ti816x_class);
2831 2830
2832/* Some PCIe devices do not work reliably with the claimed maximum 2831/* Some PCIe devices do not work reliably with the claimed maximum
2833 * payload size supported. 2832 * payload size supported.