summaryrefslogtreecommitdiff
path: root/libre/oss-libre/linux-3.8.patch
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-06-28 20:51:04 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-06-28 20:51:04 -0300
commitd5ef8d1e4d76423613bfae63be347e3714b51794 (patch)
treea685dd0fd28eedde9dea73af4e607d252532a06c /libre/oss-libre/linux-3.8.patch
parentfb2086c4aad3719d95eb3e6fb33540ab42b6bcef (diff)
oss-libre: add new package to libre repo
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