changeset 3125:d62aa0b7fd68

use <linux/slab.h> instead of <linux/malloc.h> for kernels 2.4.9+
author szabi
date Sun, 25 Nov 2001 23:34:37 +0000
parents ab7ce23a187d
children e71ae0213431
files drivers/mga_vid.c drivers/sis_vid.c
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/drivers/mga_vid.c	Sun Nov 25 20:19:32 2001 +0000
+++ b/drivers/mga_vid.c	Sun Nov 25 23:34:37 2001 +0000
@@ -39,7 +39,13 @@
 #include <linux/mm.h>
 #include <linux/string.h>
 #include <linux/errno.h>
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,10)
 #include <linux/malloc.h>
+#else
+#include <linux/slab.h>
+#endif
+
 #include <linux/pci.h>
 #include <linux/ioport.h>
 #include <linux/init.h>
--- a/drivers/sis_vid.c	Sun Nov 25 20:19:32 2001 +0000
+++ b/drivers/sis_vid.c	Sun Nov 25 23:34:37 2001 +0000
@@ -23,7 +23,13 @@
 #include <linux/mm.h>
 #include <linux/string.h>
 #include <linux/errno.h>
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,10)
 #include <linux/malloc.h>
+#else
+#include <linux/slab.h>
+#endif
+
 #include <linux/pci.h>
 #include <linux/init.h>
 //#include <linux/videodev.h>