commit 82fe9b584d67c4e7246995ba2761c7cd102e2be7
Author: Jan RÄ™korajski <[email protected]>
Date:   Thu Dec 20 14:03:40 2012 +0100

    - better fix for linux 3.7
    - rel 2

 igb.spec        | 2 +-
 linux-3.7.patch | 7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/igb.spec b/igb.spec
index cc1d15c..5fc0189 100644
--- 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
diff --git a/linux-3.7.patch b/linux-3.7.patch
index 7193673..ba07f6d 100644
--- a/linux-3.7.patch
+++ b/linux-3.7.patch
@@ -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)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/igb.git/commitdiff/82fe9b584d67c4e7246995ba2761c7cd102e2be7

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to