ops.ooblen    = use_len;
                ops.oobretlen = 0;
                ops.ooboffs   = use_offset;
-               ops.datbuf    = 0;
+               ops.datbuf    = NULL;
                ops.oobbuf    = writebuf;
                err = mtd->write_oob(mtd, addr, &ops);
                if (err || ops.oobretlen != use_len) {
                ops.ooblen    = use_len;
                ops.oobretlen = 0;
                ops.ooboffs   = use_offset;
-               ops.datbuf    = 0;
+               ops.datbuf    = NULL;
                ops.oobbuf    = readbuf;
                err = mtd->read_oob(mtd, addr, &ops);
                if (err || ops.oobretlen != use_len) {
                        ops.ooblen    = mtd->ecclayout->oobavail;
                        ops.oobretlen = 0;
                        ops.ooboffs   = 0;
-                       ops.datbuf    = 0;
+                       ops.datbuf    = NULL;
                        ops.oobbuf    = readbuf;
                        err = mtd->read_oob(mtd, addr, &ops);
                        if (err || ops.oobretlen != mtd->ecclayout->oobavail) {
        ops.ooblen    = len;
        ops.oobretlen = 0;
        ops.ooboffs   = 0;
-       ops.datbuf    = 0;
+       ops.datbuf    = NULL;
        ops.oobbuf    = readbuf;
        err = mtd->read_oob(mtd, addr, &ops);
        if (err || ops.oobretlen != len) {
        ops.ooblen    = 1;
        ops.oobretlen = 0;
        ops.ooboffs   = mtd->ecclayout->oobavail;
-       ops.datbuf    = 0;
+       ops.datbuf    = NULL;
        ops.oobbuf    = writebuf;
        printk(PRINT_PREF "attempting to start write past end of OOB\n");
        printk(PRINT_PREF "an error is expected...\n");
        ops.ooblen    = 1;
        ops.oobretlen = 0;
        ops.ooboffs   = mtd->ecclayout->oobavail;
-       ops.datbuf    = 0;
+       ops.datbuf    = NULL;
        ops.oobbuf    = readbuf;
        printk(PRINT_PREF "attempting to start read past end of OOB\n");
        printk(PRINT_PREF "an error is expected...\n");
                ops.ooblen    = mtd->ecclayout->oobavail + 1;
                ops.oobretlen = 0;
                ops.ooboffs   = 0;
-               ops.datbuf    = 0;
+               ops.datbuf    = NULL;
                ops.oobbuf    = writebuf;
                printk(PRINT_PREF "attempting to write past end of device\n");
                printk(PRINT_PREF "an error is expected...\n");
                ops.ooblen    = mtd->ecclayout->oobavail + 1;
                ops.oobretlen = 0;
                ops.ooboffs   = 0;
-               ops.datbuf    = 0;
+               ops.datbuf    = NULL;
                ops.oobbuf    = readbuf;
                printk(PRINT_PREF "attempting to read past end of device\n");
                printk(PRINT_PREF "an error is expected...\n");
                ops.ooblen    = mtd->ecclayout->oobavail;
                ops.oobretlen = 0;
                ops.ooboffs   = 1;
-               ops.datbuf    = 0;
+               ops.datbuf    = NULL;
                ops.oobbuf    = writebuf;
                printk(PRINT_PREF "attempting to write past end of device\n");
                printk(PRINT_PREF "an error is expected...\n");
                ops.ooblen    = mtd->ecclayout->oobavail;
                ops.oobretlen = 0;
                ops.ooboffs   = 1;
-               ops.datbuf    = 0;
+               ops.datbuf    = NULL;
                ops.oobbuf    = readbuf;
                printk(PRINT_PREF "attempting to read past end of device\n");
                printk(PRINT_PREF "an error is expected...\n");
                        ops.ooblen    = sz;
                        ops.oobretlen = 0;
                        ops.ooboffs   = 0;
-                       ops.datbuf    = 0;
+                       ops.datbuf    = NULL;
                        ops.oobbuf    = writebuf;
                        err = mtd->write_oob(mtd, addr, &ops);
                        if (err)
                ops.ooblen    = mtd->ecclayout->oobavail * 2;
                ops.oobretlen = 0;
                ops.ooboffs   = 0;
-               ops.datbuf    = 0;
+               ops.datbuf    = NULL;
                ops.oobbuf    = readbuf;
                err = mtd->read_oob(mtd, addr, &ops);
                if (err)