mm: remove the pgprot argument to __vmalloc
[sfrench/cifs-2.6.git] / drivers / mtd / ubi / io.c
index b57b84fb97d0a356834a4b80e28ba1b8d71e3855..14d890b00d2cb54d380c13fcb60011884241306a 100644 (file)
@@ -1297,7 +1297,7 @@ static int self_check_write(struct ubi_device *ubi, const void *buf, int pnum,
        if (!ubi_dbg_chk_io(ubi))
                return 0;
 
-       buf1 = __vmalloc(len, GFP_NOFS, PAGE_KERNEL);
+       buf1 = __vmalloc(len, GFP_NOFS);
        if (!buf1) {
                ubi_err(ubi, "cannot allocate memory to check writes");
                return 0;
@@ -1361,7 +1361,7 @@ int ubi_self_check_all_ff(struct ubi_device *ubi, int pnum, int offset, int len)
        if (!ubi_dbg_chk_io(ubi))
                return 0;
 
-       buf = __vmalloc(len, GFP_NOFS, PAGE_KERNEL);
+       buf = __vmalloc(len, GFP_NOFS);
        if (!buf) {
                ubi_err(ubi, "cannot allocate memory to check for 0xFFs");
                return 0;