]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/hpfs/buffer.c
hwmon: (lm85) Implement the standard PWM frequency interface
[linux-2.6-omap-h63xx.git] / fs / hpfs / buffer.c
index 2807aa833e62011a42ddeea45e8bc46867907229..b6fca543544c5acd63907d9227331178489d8256 100644 (file)
@@ -5,7 +5,7 @@
  *
  *  general buffer i/o
  */
-
+#include <linux/sched.h>
 #include "hpfs_fn.h"
 
 void hpfs_lock_creation(struct super_block *s)
@@ -76,7 +76,7 @@ void *hpfs_map_4sectors(struct super_block *s, unsigned secno, struct quad_buffe
                return NULL;
        }
 
-       qbh->data = data = (char *)kmalloc(2048, GFP_NOFS);
+       qbh->data = data = kmalloc(2048, GFP_NOFS);
        if (!data) {
                printk("HPFS: hpfs_map_4sectors: out of memory\n");
                goto bail;