]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
Adjust pexor.ko for kernel 5.8.4
authorJoern Adamczewski-Musch <j.adamczewski@gsi.de>
Thu, 10 Sep 2020 14:35:28 +0000 (16:35 +0200)
committerHadaq Hades <hadaq@lxhadesdaq>
Thu, 10 Sep 2020 14:35:28 +0000 (16:35 +0200)
pexor/kernel-module/pexor_trb.c

index 4be0b38528ccc1fa83da30ba3f93a939249965ec..967bb8f9b712e6d6b5849ea34fa18ebefff88cd1 100644 (file)
@@ -583,9 +583,14 @@ int probe(struct pci_dev* dev,
       }
       printk("requested memory at %lx with length %lx\n",
              priv->bases[ix], priv->reglen[ix]);
+      //JAM2020:Linux tumbleweed at homeoffice shows it!
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,5,19)
+      priv->iomem[ix] = ioremap(priv->bases[ix], priv->reglen[ix]);
+#else
       priv->iomem[ix] =
         ioremap_nocache(priv->bases[ix], priv->reglen[ix]);
-      if (priv->iomem[ix] == NULL) {
+#endif
+        if (priv->iomem[ix] == NULL) {
         printk(KERN_ERR
                "Could not remap memory  at bar %d for device \"%s\"\n", ix,
                dev->dev.kobj.name);