summaryrefslogtreecommitdiff
path: root/libre/oss-libre/linux-3.8.patch
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-06-29 01:12:42 -0300
committerMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-06-29 01:12:42 -0300
commit4242acd32a96183603ac8fee4772db60db920b56 (patch)
tree3d05ae8a72b9086ea1b4a8afd2cb36934fd5828b /libre/oss-libre/linux-3.8.patch
parentf29b6c6483196ad948582f789330a35726899925 (diff)
parentdd0ca4cf619119415c81395613929ede28021823 (diff)
downloadabslibre-4242acd32a96183603ac8fee4772db60db920b56.tar.gz
abslibre-4242acd32a96183603ac8fee4772db60db920b56.tar.bz2
abslibre-4242acd32a96183603ac8fee4772db60db920b56.zip
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre/oss-libre/linux-3.8.patch')
-rw-r--r--libre/oss-libre/linux-3.8.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/libre/oss-libre/linux-3.8.patch b/libre/oss-libre/linux-3.8.patch
new file mode 100644
index 000000000..46200e01a
--- /dev/null
+++ b/libre/oss-libre/linux-3.8.patch
@@ -0,0 +1,40 @@
+--- setup/Linux/oss/build/pci_wrapper.inc 2009-08-27 05:19:07.000000000 +0300
++++ setup/Linux/oss/build/pci_wrapper.inc 2013-02-08 13:56:10.519794975 +0200
+@@ -17,7 +17,11 @@
+ static dev_map_t dev_map[MAX_INSTANCE];
+ static int n_devmap = 0;
+
++#if LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0)
+ static int __devinit
++#else
++static int
++#endif
+ osspci_probe (struct pci_dev *pcidev, const struct pci_device_id *pciid)
+ {
+ oss_device_t *osdev;
+@@ -65,7 +69,11 @@
+ return 0;
+ }
+
+-static void __devexit
++#if LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0)
++static int __devexit
++#else
++static int
++#endif
+ osspci_remove (struct pci_dev *pcidev)
+ {
+ int i;
+@@ -80,10 +88,11 @@
+ pci_disable_device (dev_map[i].pcidev);
+ osdev_delete (osdev);
+
+- return;
++ return 0;
+ }
+
+ printk (KERN_ALERT DRIVER_NICK ": Can't find the PCI device to detach\n");
++ return -EIO;
+ }
+
+ void