]> git.pld-linux.org Git - packages/igb.git/commitdiff
- better fix for linux 3.7 auto/th/igb-4.0.17-2
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 20 Dec 2012 13:03:40 +0000 (14:03 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 20 Dec 2012 13:03:40 +0000 (14:03 +0100)
- rel 2

igb.spec
linux-3.7.patch

index cc1d15cd863274b04010e6d372a460e9f9203ede..5fc0189d1118840b191e6b2f5e835e0a09e58a98 100644 (file)
--- a/igb.spec
+++ b/igb.spec
@@ -14,7 +14,7 @@
 %undefine      with_userspace
 %endif
 
-%define                rel     1
+%define                rel     2
 %define                pname   igb
 Summary:       Intel(R) PRO/1000 driver for Linux
 Summary(pl.UTF-8):     Sterownik do karty Intel(R) PRO/1000
index 719367389e31fa6b0f32d520b31525aba9f36391..ba07f6d74db3563f875aa94f2c0708cfb552d5ba 100644 (file)
@@ -1,11 +1,14 @@
 --- igb-4.0.17/src/igb_main.c~ 2012-10-08 17:37:31.000000000 +0200
 +++ igb-4.0.17/src/igb_main.c  2012-12-20 13:47:16.403675607 +0100
-@@ -7833,7 +7833,7 @@
+@@ -7833,7 +7833,11 @@
                goto skip_bad_vf_detection;
  
        bdev = pdev->bus->self;
--      while (bdev && (bdev->pcie_type != PCI_EXP_TYPE_ROOT_PORT))
++#if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0) )
+       while (bdev && (bdev->pcie_type != PCI_EXP_TYPE_ROOT_PORT))
++#else
 +      while (bdev && (pci_pcie_type(bdev) != PCI_EXP_TYPE_ROOT_PORT))
++#endif
                bdev = bdev->bus->self;
  
        if (!bdev)
This page took 0.068898 seconds and 4 git commands to generate.