Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] ibmphp: remove TRUE and FALSE

This patch removes the defines TRUE and FALSE and just uses 0 or 1.

Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Kristen Accardi and committed by
Greg Kroah-Hartman
dc6712d1 783c49fc

+83 -85
-2
drivers/pci/hotplug/ibmphp.h
··· 406 406 //---------------------------------------------------------------------------- 407 407 // HPC return codes 408 408 //---------------------------------------------------------------------------- 409 - #define FALSE 0x00 410 - #define TRUE 0x01 411 409 #define HPC_ERROR 0xFF 412 410 413 411 //-----------------------------------------------------------------------------
+2 -2
drivers/pci/hotplug/ibmphp_core.c
··· 1239 1239 } 1240 1240 1241 1241 flag = slot_cur->flag; 1242 - slot_cur->flag = TRUE; 1242 + slot_cur->flag = 1; 1243 1243 1244 - if (flag == TRUE) { 1244 + if (flag == 1) { 1245 1245 rc = validate(slot_cur, DISABLE); 1246 1246 /* checking if powered off already & valid slot # */ 1247 1247 if (rc)
+1 -1
drivers/pci/hotplug/ibmphp_ebda.c
··· 944 944 goto error_no_slot; 945 945 } 946 946 947 - tmp_slot->flag = TRUE; 947 + tmp_slot->flag = 1; 948 948 949 949 tmp_slot->capabilities = hpc_ptr->slots[index].slot_cap; 950 950 if ((hpc_ptr->slots[index].slot_cap & EBDA_SLOT_133_MAX) == EBDA_SLOT_133_MAX)
+27 -27
drivers/pci/hotplug/ibmphp_hpc.c
··· 38 38 39 39 #include "ibmphp.h" 40 40 41 - static int to_debug = FALSE; 41 + static int to_debug = 0; 42 42 #define debug_polling(fmt, arg...) do { if (to_debug) debug (fmt, arg); } while (0) 43 43 44 44 //---------------------------------------------------------------------------- ··· 95 95 //---------------------------------------------------------------------------- 96 96 // macro utilities 97 97 //---------------------------------------------------------------------------- 98 - // if bits 20,22,25,26,27,29,30 are OFF return TRUE 99 - #define HPC_I2CSTATUS_CHECK(s) ((u8)((s & 0x00000A76) ? FALSE : TRUE)) 98 + // if bits 20,22,25,26,27,29,30 are OFF return 1 99 + #define HPC_I2CSTATUS_CHECK(s) ((u8)((s & 0x00000A76) ? 0 : 1)) 100 100 101 101 //---------------------------------------------------------------------------- 102 102 // global variables ··· 136 136 mutex_init(&sem_hpcaccess); 137 137 init_MUTEX (&semOperations); 138 138 init_MUTEX_LOCKED (&sem_exit); 139 - to_debug = FALSE; 140 - ibmphp_shutdown = FALSE; 139 + to_debug = 0; 140 + ibmphp_shutdown = 0; 141 141 tid_poll = 0; 142 142 143 143 debug ("%s - Exit\n", __FUNCTION__); ··· 739 739 // check controller is still not working on the command 740 740 //-------------------------------------------------------------------- 741 741 timeout = CMD_COMPLETE_TOUT_SEC; 742 - done = FALSE; 742 + done = 0; 743 743 while (!done) { 744 744 rc = hpc_wait_ctlr_notworking (HPC_CTLR_WORKING_TOUT, ctlr_ptr, wpg_bbar, 745 745 &status); 746 746 if (!rc) { 747 747 if (NEEDTOCHECK_CMDSTATUS (cmd)) { 748 748 if (CTLR_FINISHED (status) == HPC_CTLR_FINISHED_YES) 749 - done = TRUE; 749 + done = 1; 750 750 } else 751 - done = TRUE; 751 + done = 1; 752 752 } 753 753 if (!done) { 754 754 msleep(1000); 755 755 if (timeout < 1) { 756 - done = TRUE; 756 + done = 1; 757 757 err ("%s - Error command complete timeout\n", __FUNCTION__); 758 758 rc = -EFAULT; 759 759 } else ··· 799 799 void ibmphp_lock_operations (void) 800 800 { 801 801 down (&semOperations); 802 - to_debug = TRUE; 802 + to_debug = 1; 803 803 } 804 804 805 805 /*---------------------------------------------------------------------- ··· 809 809 { 810 810 debug ("%s - Entry\n", __FUNCTION__); 811 811 up (&semOperations); 812 - to_debug = FALSE; 812 + to_debug = 0; 813 813 debug ("%s - Exit\n", __FUNCTION__); 814 814 } 815 815 ··· 937 937 { 938 938 u8 status; 939 939 int rc = 0; 940 - u8 disable = FALSE; 941 - u8 update = FALSE; 940 + u8 disable = 0; 941 + u8 update = 0; 942 942 943 943 debug ("process_changeinstatus - Entry pslot[%p], poldslot[%p]\n", pslot, poldslot); 944 944 945 945 // bit 0 - HPC_SLOT_POWER 946 946 if ((pslot->status & 0x01) != (poldslot->status & 0x01)) 947 - update = TRUE; 947 + update = 1; 948 948 949 949 // bit 1 - HPC_SLOT_CONNECT 950 950 // ignore 951 951 952 952 // bit 2 - HPC_SLOT_ATTN 953 953 if ((pslot->status & 0x04) != (poldslot->status & 0x04)) 954 - update = TRUE; 954 + update = 1; 955 955 956 956 // bit 3 - HPC_SLOT_PRSNT2 957 957 // bit 4 - HPC_SLOT_PRSNT1 958 958 if (((pslot->status & 0x08) != (poldslot->status & 0x08)) 959 959 || ((pslot->status & 0x10) != (poldslot->status & 0x10))) 960 - update = TRUE; 960 + update = 1; 961 961 962 962 // bit 5 - HPC_SLOT_PWRGD 963 963 if ((pslot->status & 0x20) != (poldslot->status & 0x20)) 964 964 // OFF -> ON: ignore, ON -> OFF: disable slot 965 965 if ((poldslot->status & 0x20) && (SLOT_CONNECT (poldslot->status) == HPC_SLOT_CONNECTED) && (SLOT_PRESENT (poldslot->status))) 966 - disable = TRUE; 966 + disable = 1; 967 967 968 968 // bit 6 - HPC_SLOT_BUS_SPEED 969 969 // ignore 970 970 971 971 // bit 7 - HPC_SLOT_LATCH 972 972 if ((pslot->status & 0x80) != (poldslot->status & 0x80)) { 973 - update = TRUE; 973 + update = 1; 974 974 // OPEN -> CLOSE 975 975 if (pslot->status & 0x80) { 976 976 if (SLOT_PWRGD (pslot->status)) { ··· 979 979 msleep(1000); 980 980 rc = ibmphp_hpc_readslot (pslot, READ_SLOTSTATUS, &status); 981 981 if (SLOT_PWRGD (status)) 982 - update = TRUE; 982 + update = 1; 983 983 else // overwrite power in pslot to OFF 984 984 pslot->status &= ~HPC_SLOT_POWER; 985 985 } ··· 987 987 // CLOSE -> OPEN 988 988 else if ((SLOT_PWRGD (poldslot->status) == HPC_SLOT_PWRGD_GOOD) 989 989 && (SLOT_CONNECT (poldslot->status) == HPC_SLOT_CONNECTED) && (SLOT_PRESENT (poldslot->status))) { 990 - disable = TRUE; 990 + disable = 1; 991 991 } 992 992 // else - ignore 993 993 } 994 994 // bit 4 - HPC_SLOT_BLINK_ATTN 995 995 if ((pslot->ext_status & 0x08) != (poldslot->ext_status & 0x08)) 996 - update = TRUE; 996 + update = 1; 997 997 998 998 if (disable) { 999 999 debug ("process_changeinstatus - disable slot\n"); 1000 - pslot->flag = FALSE; 1000 + pslot->flag = 0; 1001 1001 rc = ibmphp_do_disable_slot (pslot); 1002 1002 } 1003 1003 ··· 1102 1102 { 1103 1103 debug ("%s - Entry\n", __FUNCTION__); 1104 1104 1105 - ibmphp_shutdown = TRUE; 1105 + ibmphp_shutdown = 1; 1106 1106 debug ("before locking operations \n"); 1107 1107 ibmphp_lock_operations (); 1108 1108 debug ("after locking operations \n"); ··· 1136 1136 u8 * pstatus) 1137 1137 { 1138 1138 int rc = 0; 1139 - u8 done = FALSE; 1139 + u8 done = 0; 1140 1140 1141 1141 debug_polling ("hpc_wait_ctlr_notworking - Entry timeout[%d]\n", timeout); 1142 1142 ··· 1144 1144 *pstatus = ctrl_read (ctlr_ptr, wpg_bbar, WPG_CTLR_INDEX); 1145 1145 if (*pstatus == HPC_ERROR) { 1146 1146 rc = HPC_ERROR; 1147 - done = TRUE; 1147 + done = 1; 1148 1148 } 1149 1149 if (CTLR_WORKING (*pstatus) == HPC_CTLR_WORKING_NO) 1150 - done = TRUE; 1150 + done = 1; 1151 1151 if (!done) { 1152 1152 msleep(1000); 1153 1153 if (timeout < 1) { 1154 - done = TRUE; 1154 + done = 1; 1155 1155 err ("HPCreadslot - Error ctlr timeout\n"); 1156 1156 rc = HPC_ERROR; 1157 1157 } else
+29 -29
drivers/pci/hotplug/ibmphp_pci.c
··· 199 199 } 200 200 201 201 pci_bus_read_config_byte (ibmphp_pci_bus, devfn, PCI_SECONDARY_BUS, &sec_number); 202 - flag = FALSE; 202 + flag = 0; 203 203 for (i = 0; i < 32; i++) { 204 204 if (func->devices[i]) { 205 205 newfunc = kzalloc(sizeof(*newfunc), GFP_KERNEL); ··· 226 226 cleanup_count = 2; 227 227 goto error; 228 228 } 229 - flag = TRUE; 229 + flag = 1; 230 230 } 231 231 } 232 232 ··· 272 272 cur_func->busno, device, function); 273 273 pci_bus_read_config_byte (ibmphp_pci_bus, devfn, PCI_SECONDARY_BUS, &sec_number); 274 274 debug ("after configuring bridge..., sec_number = %x\n", sec_number); 275 - flag = FALSE; 275 + flag = 0; 276 276 for (i = 0; i < 32; i++) { 277 277 if (func->devices[i]) { 278 278 debug ("inside for loop, device is %x\n", i); ··· 301 301 cleanup_count = 2; 302 302 goto error; 303 303 } 304 - flag = TRUE; 304 + flag = 1; 305 305 } 306 306 } 307 307 ··· 449 449 pfmem[count]->devfunc = PCI_DEVFN(func->device, 450 450 func->function); 451 451 pfmem[count]->len = len[count]; 452 - pfmem[count]->fromMem = FALSE; 452 + pfmem[count]->fromMem = 0; 453 453 if (ibmphp_check_resource (pfmem[count], 0) == 0) { 454 454 ibmphp_add_resource (pfmem[count]); 455 455 func->pfmem[count] = pfmem[count]; ··· 467 467 debug ("there's no pfmem... going into mem.\n"); 468 468 if (ibmphp_check_resource (mem_tmp, 0) == 0) { 469 469 ibmphp_add_resource (mem_tmp); 470 - pfmem[count]->fromMem = TRUE; 470 + pfmem[count]->fromMem = 1; 471 471 pfmem[count]->rangeno = mem_tmp->rangeno; 472 472 pfmem[count]->start = mem_tmp->start; 473 473 pfmem[count]->end = mem_tmp->end; ··· 571 571 u16 pfmem_base; 572 572 u32 bar[2]; 573 573 u32 len[2]; 574 - u8 flag_io = FALSE; 575 - u8 flag_mem = FALSE; 576 - u8 flag_pfmem = FALSE; 577 - u8 need_io_upper = FALSE; 578 - u8 need_pfmem_upper = FALSE; 574 + u8 flag_io = 0; 575 + u8 flag_mem = 0; 576 + u8 flag_pfmem = 0; 577 + u8 need_io_upper = 0; 578 + u8 need_pfmem_upper = 0; 579 579 struct res_needed *amount_needed = NULL; 580 580 struct resource_node *io = NULL; 581 581 struct resource_node *bus_io[2] = {NULL, NULL}; ··· 713 713 bus_pfmem[count]->devfunc = PCI_DEVFN(func->device, 714 714 func->function); 715 715 bus_pfmem[count]->len = len[count]; 716 - bus_pfmem[count]->fromMem = FALSE; 716 + bus_pfmem[count]->fromMem = 0; 717 717 if (ibmphp_check_resource (bus_pfmem[count], 0) == 0) { 718 718 ibmphp_add_resource (bus_pfmem[count]); 719 719 func->pfmem[count] = bus_pfmem[count]; ··· 730 730 mem_tmp->len = bus_pfmem[count]->len; 731 731 if (ibmphp_check_resource (mem_tmp, 0) == 0) { 732 732 ibmphp_add_resource (mem_tmp); 733 - bus_pfmem[count]->fromMem = TRUE; 733 + bus_pfmem[count]->fromMem = 1; 734 734 bus_pfmem[count]->rangeno = mem_tmp->rangeno; 735 735 ibmphp_add_pfmem_from_mem (bus_pfmem[count]); 736 736 func->pfmem[count] = bus_pfmem[count]; ··· 826 826 827 827 if (!amount_needed->io) { 828 828 debug ("it doesn't want IO?\n"); 829 - flag_io = TRUE; 829 + flag_io = 1; 830 830 } else { 831 831 debug ("it wants %x IO behind the bridge\n", amount_needed->io); 832 832 io = kzalloc(sizeof(*io), GFP_KERNEL); ··· 843 843 if (ibmphp_check_resource (io, 1) == 0) { 844 844 debug ("were we able to add io\n"); 845 845 ibmphp_add_resource (io); 846 - flag_io = TRUE; 846 + flag_io = 1; 847 847 } 848 848 } 849 849 850 850 if (!amount_needed->mem) { 851 851 debug ("it doesn't want n.e.memory?\n"); 852 - flag_mem = TRUE; 852 + flag_mem = 1; 853 853 } else { 854 854 debug ("it wants %x memory behind the bridge\n", amount_needed->mem); 855 855 mem = kzalloc(sizeof(*mem), GFP_KERNEL); ··· 864 864 mem->len = amount_needed->mem; 865 865 if (ibmphp_check_resource (mem, 1) == 0) { 866 866 ibmphp_add_resource (mem); 867 - flag_mem = TRUE; 867 + flag_mem = 1; 868 868 debug ("were we able to add mem\n"); 869 869 } 870 870 } 871 871 872 872 if (!amount_needed->pfmem) { 873 873 debug ("it doesn't want n.e.pfmem mem?\n"); 874 - flag_pfmem = TRUE; 874 + flag_pfmem = 1; 875 875 } else { 876 876 debug ("it wants %x pfmemory behind the bridge\n", amount_needed->pfmem); 877 877 pfmem = kzalloc(sizeof(*pfmem), GFP_KERNEL); ··· 884 884 pfmem->busno = func->busno; 885 885 pfmem->devfunc = PCI_DEVFN(func->device, func->function); 886 886 pfmem->len = amount_needed->pfmem; 887 - pfmem->fromMem = FALSE; 887 + pfmem->fromMem = 0; 888 888 if (ibmphp_check_resource (pfmem, 1) == 0) { 889 889 ibmphp_add_resource (pfmem); 890 - flag_pfmem = TRUE; 890 + flag_pfmem = 1; 891 891 } else { 892 892 mem_tmp = kzalloc(sizeof(*mem_tmp), GFP_KERNEL); 893 893 if (!mem_tmp) { ··· 901 901 mem_tmp->len = pfmem->len; 902 902 if (ibmphp_check_resource (mem_tmp, 1) == 0) { 903 903 ibmphp_add_resource (mem_tmp); 904 - pfmem->fromMem = TRUE; 904 + pfmem->fromMem = 1; 905 905 pfmem->rangeno = mem_tmp->rangeno; 906 906 ibmphp_add_pfmem_from_mem (pfmem); 907 - flag_pfmem = TRUE; 907 + flag_pfmem = 1; 908 908 } 909 909 } 910 910 } ··· 950 950 951 951 if ((io_base & PCI_IO_RANGE_TYPE_MASK) == PCI_IO_RANGE_TYPE_32) { 952 952 debug ("io 32\n"); 953 - need_io_upper = TRUE; 953 + need_io_upper = 1; 954 954 } 955 955 if ((pfmem_base & PCI_PREF_RANGE_TYPE_MASK) == PCI_PREF_RANGE_TYPE_64) { 956 956 debug ("pfmem 64\n"); 957 - need_pfmem_upper = TRUE; 957 + need_pfmem_upper = 1; 958 958 } 959 959 960 960 if (bus->noIORanges) { ··· 1119 1119 debug ("hdr_type behind the bridge is %x\n", hdr_type); 1120 1120 if (hdr_type & PCI_HEADER_TYPE_BRIDGE) { 1121 1121 err ("embedded bridges not supported for hot-plugging.\n"); 1122 - amount->not_correct = TRUE; 1122 + amount->not_correct = 1; 1123 1123 return amount; 1124 1124 } 1125 1125 ··· 1127 1127 if (class == PCI_CLASS_NOT_DEFINED_VGA) { 1128 1128 err ("The device %x is VGA compatible and as is not supported for hot plugging. " 1129 1129 "Please choose another device.\n", device); 1130 - amount->not_correct = TRUE; 1130 + amount->not_correct = 1; 1131 1131 return amount; 1132 1132 } else if (class == PCI_CLASS_DISPLAY_VGA) { 1133 1133 err ("The device %x is not supported for hot plugging. " 1134 1134 "Please choose another device.\n", device); 1135 - amount->not_correct = TRUE; 1135 + amount->not_correct = 1; 1136 1136 return amount; 1137 1137 } 1138 1138 ··· 1192 1192 } /* end for */ 1193 1193 1194 1194 if (!howmany) 1195 - amount->not_correct = TRUE; 1195 + amount->not_correct = 1; 1196 1196 else 1197 - amount->not_correct = FALSE; 1197 + amount->not_correct = 0; 1198 1198 if ((amount->io) && (amount->io < IOBRIDGE)) 1199 1199 amount->io = IOBRIDGE; 1200 1200 if ((amount->mem) && (amount->mem < MEMBRIDGE))
+24 -24
drivers/pci/hotplug/ibmphp_res.c
··· 325 325 if (!new_pfmem) 326 326 return -ENOMEM; 327 327 new_pfmem->type = PFMEM; 328 - new_pfmem->fromMem = FALSE; 328 + new_pfmem->fromMem = 0; 329 329 if (ibmphp_add_resource (new_pfmem) < 0) { 330 330 newbus = alloc_error_bus (curr, 0, 0); 331 331 if (!newbus) ··· 462 462 static void update_resources (struct bus_node *bus_cur, int type, int rangeno) 463 463 { 464 464 struct resource_node *res = NULL; 465 - u8 eol = FALSE; /* end of list indicator */ 465 + u8 eol = 0; /* end of list indicator */ 466 466 467 467 switch (type) { 468 468 case MEM: ··· 488 488 else if (res->nextRange) 489 489 res = res->nextRange; 490 490 else { 491 - eol = TRUE; 491 + eol = 1; 492 492 break; 493 493 } 494 494 } ··· 979 979 int noranges = 0; 980 980 u32 tmp_start; /* this is to make sure start address is divisible by the length needed */ 981 981 u32 tmp_divide; 982 - u8 flag = FALSE; 982 + u8 flag = 0; 983 983 984 984 if (!res) 985 985 return -EINVAL; ··· 1046 1046 1047 1047 if ((range->start % tmp_divide) == 0) { 1048 1048 /* just perfect, starting address is divisible by length */ 1049 - flag = TRUE; 1049 + flag = 1; 1050 1050 len_cur = len_tmp; 1051 1051 start_cur = range->start; 1052 1052 } else { 1053 1053 /* Needs adjusting */ 1054 1054 tmp_start = range->start; 1055 - flag = FALSE; 1055 + flag = 0; 1056 1056 1057 1057 while ((len_tmp = res_cur->start - 1 - tmp_start) >= res->len) { 1058 1058 if ((tmp_start % tmp_divide) == 0) { 1059 - flag = TRUE; 1059 + flag = 1; 1060 1060 len_cur = len_tmp; 1061 1061 start_cur = tmp_start; 1062 1062 break; ··· 1085 1085 1086 1086 if (((res_cur->end + 1) % tmp_divide) == 0) { 1087 1087 /* just perfect, starting address is divisible by length */ 1088 - flag = TRUE; 1088 + flag = 1; 1089 1089 len_cur = len_tmp; 1090 1090 start_cur = res_cur->end + 1; 1091 1091 } else { 1092 1092 /* Needs adjusting */ 1093 1093 tmp_start = res_cur->end + 1; 1094 - flag = FALSE; 1094 + flag = 0; 1095 1095 1096 1096 while ((len_tmp = range->end - tmp_start) >= res->len) { 1097 1097 if ((tmp_start % tmp_divide) == 0) { 1098 - flag = TRUE; 1098 + flag = 1; 1099 1099 len_cur = len_tmp; 1100 1100 start_cur = tmp_start; 1101 1101 break; ··· 1123 1123 if ((len_tmp < len_cur) || (len_cur == 0)) { 1124 1124 if ((range->start % tmp_divide) == 0) { 1125 1125 /* just perfect, starting address is divisible by length */ 1126 - flag = TRUE; 1126 + flag = 1; 1127 1127 len_cur = len_tmp; 1128 1128 start_cur = range->start; 1129 1129 } else { 1130 1130 /* Needs adjusting */ 1131 1131 tmp_start = range->start; 1132 - flag = FALSE; 1132 + flag = 0; 1133 1133 1134 1134 while ((len_tmp = res_cur->start - 1 - tmp_start) >= res->len) { 1135 1135 if ((tmp_start % tmp_divide) == 0) { 1136 - flag = TRUE; 1136 + flag = 1; 1137 1137 len_cur = len_tmp; 1138 1138 start_cur = tmp_start; 1139 1139 break; ··· 1158 1158 if ((len_tmp < len_cur) || (len_cur == 0)) { 1159 1159 if (((res_prev->end + 1) % tmp_divide) == 0) { 1160 1160 /* just perfect, starting address's divisible by length */ 1161 - flag = TRUE; 1161 + flag = 1; 1162 1162 len_cur = len_tmp; 1163 1163 start_cur = res_prev->end + 1; 1164 1164 } else { 1165 1165 /* Needs adjusting */ 1166 1166 tmp_start = res_prev->end + 1; 1167 - flag = FALSE; 1167 + flag = 0; 1168 1168 1169 1169 while ((len_tmp = res_cur->start - 1 - tmp_start) >= res->len) { 1170 1170 if ((tmp_start % tmp_divide) == 0) { 1171 - flag = TRUE; 1171 + flag = 1; 1172 1172 len_cur = len_tmp; 1173 1173 start_cur = tmp_start; 1174 1174 break; ··· 1217 1217 if ((len_tmp < len_cur) || (len_cur == 0)) { 1218 1218 if ((range->start % tmp_divide) == 0) { 1219 1219 /* just perfect, starting address's divisible by length */ 1220 - flag = TRUE; 1220 + flag = 1; 1221 1221 len_cur = len_tmp; 1222 1222 start_cur = range->start; 1223 1223 } else { 1224 1224 /* Needs adjusting */ 1225 1225 tmp_start = range->start; 1226 - flag = FALSE; 1226 + flag = 0; 1227 1227 1228 1228 while ((len_tmp = range->end - tmp_start) >= res->len) { 1229 1229 if ((tmp_start % tmp_divide) == 0) { 1230 - flag = TRUE; 1230 + flag = 1; 1231 1231 len_cur = len_tmp; 1232 1232 start_cur = tmp_start; 1233 1233 break; ··· 1281 1281 if ((len_tmp < len_cur) || (len_cur == 0)) { 1282 1282 if ((range->start % tmp_divide) == 0) { 1283 1283 /* just perfect, starting address's divisible by length */ 1284 - flag = TRUE; 1284 + flag = 1; 1285 1285 len_cur = len_tmp; 1286 1286 start_cur = range->start; 1287 1287 } else { 1288 1288 /* Needs adjusting */ 1289 1289 tmp_start = range->start; 1290 - flag = FALSE; 1290 + flag = 0; 1291 1291 1292 1292 while ((len_tmp = range->end - tmp_start) >= res->len) { 1293 1293 if ((tmp_start % tmp_divide) == 0) { 1294 - flag = TRUE; 1294 + flag = 1; 1295 1295 len_cur = len_tmp; 1296 1296 start_cur = tmp_start; 1297 1297 break; ··· 1684 1684 bus_cur = list_entry (tmp, struct bus_node, bus_list); 1685 1685 if ((!bus_cur->rangePFMem) && (bus_cur->firstPFMem)) { 1686 1686 for (pfmem_cur = bus_cur->firstPFMem, pfmem_prev = NULL; pfmem_cur; pfmem_prev = pfmem_cur, pfmem_cur = pfmem_cur->next) { 1687 - pfmem_cur->fromMem = TRUE; 1687 + pfmem_cur->fromMem = 1; 1688 1688 if (pfmem_prev) 1689 1689 pfmem_prev->next = pfmem_cur->next; 1690 1690 else ··· 2129 2129 pfmem->start = start_address; 2130 2130 pfmem->end = end_address + 0xfffff; 2131 2131 pfmem->len = pfmem->end - pfmem->start + 1; 2132 - pfmem->fromMem = FALSE; 2132 + pfmem->fromMem = 0; 2133 2133 2134 2134 ibmphp_add_resource (pfmem); 2135 2135 }