--- linux-2.5.8-pre1/drivers/video/atafb.c 2002-04-03 23:38:32.000000000 -0800 +++ linux/drivers/video/atafb.c 2002-04-04 03:34:00.000000000 -0800 @@ -2874,12 +2873,9 @@ user_mode[0] = fb_info.fontname[0] = '\0'; - if (!options || !*options) - return 0; - - for(this_opt=strtok(options,","); this_opt; this_opt=strtok(NULL,",")) { + while ((this_opt = strsep(&options, ",")) != NULL) { if (!*this_opt) continue; if ((temp=get_video_mode(this_opt))) default_par=temp; --- linux-2.5.8-pre1/drivers/video/clgenfb.c 2002-03-18 12:37:10.000000000 -0800 +++ linux/drivers/video/clgenfb.c 2002-04-04 03:34:00.000000000 -0800 @@ -2857,12 +2883,8 @@ DPRINTK ("ENTER\n"); - if (!options || !*options) - return 0; - - for (this_opt = strtok (options, ","); this_opt != NULL; - this_opt = strtok (NULL, ",")) { + while ((this_opt = strsep(&options, ",")) != NULL) { if (!*this_opt) continue; DPRINTK("clgenfb_setup: option '%s'\n", this_opt); --- linux-2.5.8-pre1/drivers/video/neofb.c 2002-03-18 12:37:04.000000000 -0800 +++ linux/drivers/video/neofb.c 2002-04-04 03:34:00.000000000 -0800 @@ -2362,10 +2362,7 @@ DBG("neofb_setup"); - if (!options || !*options) - return 0; - - for (this_opt=strtok(options,","); this_opt; this_opt=strtok(NULL,",")) + while ((this_opt = strsep(&options, ",")) != NULL) { if (!*this_opt) continue; --- linux-2.5.8-pre1/drivers/video/sis/sis_main.c 2002-03-18 12:37:17.000000000 -0800 +++ linux/drivers/video/sis/sis_main.c 2002-04-04 04:01:17.000000000 -0800 @@ -2254,13 +2254,9 @@ fb_info.fontname[0] = '\0'; ivideo.refresh_rate = 0; - if (!options || !*options) - return 0; - - for (this_opt = strtok (options, ","); this_opt; - this_opt = strtok (NULL, ",")) { + while ((this_opt = strsep(&options, ",")) != NULL) { if (!*this_opt) continue; --- linux-2.5.8-pre1/drivers/scsi/ibmmca.c 2002-03-18 12:37:05.000000000 -0800 +++ linux/drivers/scsi/ibmmca.c 2002-04-04 03:34:00.000000000 -0800 @@ -1406,9 +1408,8 @@ io_base = 0; id_base = 0; if (str) { - token = strtok(str,","); j = 0; - while (token) { + while ((token = strsep(&str, ",")) != NULL) { if (!strcmp(token,"activity")) display_mode |= LED_ACTIVITY; if (!strcmp(token,"display")) display_mode |= LED_DISP; if (!strcmp(token,"adisplay")) display_mode |= LED_ADISP; @@ -1424,8 +1425,7 @@ scsi_id[id_base++] = simple_strtoul(token,NULL,0); j++; } - token = strtok(NULL,","); } } else if (ints) { for (i = 0; i < IM_MAX_HOSTS && 2*i+2 < ints[0]; i++) { --- linux-2.5.8-pre1/arch/ppc64/kernel/ppc_ksyms.c 2002-03-18 12:37:08.000000000 -0800 +++ linux/arch/ppc64/kernel/ppc_ksyms.c 2002-04-04 04:06:05.000000000 -0800 @@ -109,7 +109,6 @@ EXPORT_SYMBOL(strchr); EXPORT_SYMBOL(strrchr); EXPORT_SYMBOL(strpbrk); -EXPORT_SYMBOL(strtok); EXPORT_SYMBOL(strstr); EXPORT_SYMBOL(strlen); EXPORT_SYMBOL(strnlen);