Module: xenomai-jki
Branch: for-forge
Commit: 4b627143941fdab5ef5920f15b85b988903a8b63
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=4b627143941fdab5ef5920f15b85b988903a8b63

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Thu Dec  1 17:16:16 2016 +0100

net/drivers/pcnet32: Replace deprecated pci_dma_supported with dma_supported

The old function is no longer available with latest kernels.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 kernel/drivers/net/drivers/pcnet32.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/drivers/net/drivers/pcnet32.c 
b/kernel/drivers/net/drivers/pcnet32.c
index 7dfe28f..b041397 100644
--- a/kernel/drivers/net/drivers/pcnet32.c
+++ b/kernel/drivers/net/drivers/pcnet32.c
@@ -513,7 +513,7 @@ static int pcnet32_probe_pci(struct pci_dev *pdev, const 
struct pci_device_id *e
        return -ENODEV;
     }
 
-    if (!pci_dma_supported(pdev, PCNET32_DMA_MASK)) {
+    if (!dma_supported(&pdev->dev, PCNET32_DMA_MASK)) {
        printk(KERN_ERR PFX "architecture does not support 32bit PCI busmaster 
DMA\n");
        return -ENODEV;
     }


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to