diff options
author | Alex Chiang <achiang@hp.com> | 2009-03-31 11:23:52 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-06-11 15:04:13 -0400 |
commit | 4aabb58e1f544e97dbb97d0ce29bdfc9108f2f2c (patch) | |
tree | 2f8a5f6251ad303761e3241f0bf23e41a297031a /drivers/pci/hotplug/cpqphp_pci.c | |
parent | de86ae16d55a23315cdf1dae68df9de55312cf25 (diff) |
PCI Hotplug: cpqphp: style cleanups
Clean up style, whitespace in cpqphp_pci.c
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/hotplug/cpqphp_pci.c')
-rw-r--r-- | drivers/pci/hotplug/cpqphp_pci.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/drivers/pci/hotplug/cpqphp_pci.c b/drivers/pci/hotplug/cpqphp_pci.c index 1f1c90dd791d..bd384e94f212 100644 --- a/drivers/pci/hotplug/cpqphp_pci.c +++ b/drivers/pci/hotplug/cpqphp_pci.c | |||
@@ -950,15 +950,13 @@ int cpqhp_save_used_resources (struct controller *ctrl, struct pci_func * func) | |||
950 | return(1); | 950 | return(1); |
951 | } | 951 | } |
952 | } /* End of base register loop */ | 952 | } /* End of base register loop */ |
953 | /* Some other unknown header type */ | ||
954 | } else { | ||
955 | } | 953 | } |
956 | 954 | ||
957 | /* find the next device in this slot */ | 955 | /* find the next device in this slot */ |
958 | func = cpqhp_slot_find(func->bus, func->device, index++); | 956 | func = cpqhp_slot_find(func->bus, func->device, index++); |
959 | } | 957 | } |
960 | 958 | ||
961 | return(0); | 959 | return 0; |
962 | } | 960 | } |
963 | 961 | ||
964 | 962 | ||
@@ -993,9 +991,8 @@ int cpqhp_configure_board(struct controller *ctrl, struct pci_func * func) | |||
993 | /* Start at the top of config space so that the control | 991 | /* Start at the top of config space so that the control |
994 | * registers are programmed last | 992 | * registers are programmed last |
995 | */ | 993 | */ |
996 | for (cloop = 0x3C; cloop > 0; cloop -= 4) { | 994 | for (cloop = 0x3C; cloop > 0; cloop -= 4) |
997 | pci_bus_write_config_dword (pci_bus, devfn, cloop, func->config_space[cloop >> 2]); | 995 | pci_bus_write_config_dword (pci_bus, devfn, cloop, func->config_space[cloop >> 2]); |
998 | } | ||
999 | 996 | ||
1000 | pci_bus_read_config_byte (pci_bus, devfn, PCI_HEADER_TYPE, &header_type); | 997 | pci_bus_read_config_byte (pci_bus, devfn, PCI_HEADER_TYPE, &header_type); |
1001 | 998 | ||
@@ -1210,9 +1207,9 @@ int cpqhp_find_available_resources(struct controller *ctrl, void __iomem *rom_st | |||
1210 | rom_resource_table = detect_HRT_floating_pointer(rom_start, rom_start+0xffff); | 1207 | rom_resource_table = detect_HRT_floating_pointer(rom_start, rom_start+0xffff); |
1211 | dbg("rom_resource_table = %p\n", rom_resource_table); | 1208 | dbg("rom_resource_table = %p\n", rom_resource_table); |
1212 | 1209 | ||
1213 | if (rom_resource_table == NULL) { | 1210 | if (rom_resource_table == NULL) |
1214 | return -ENODEV; | 1211 | return -ENODEV; |
1215 | } | 1212 | |
1216 | /* Sum all resources and setup resource maps */ | 1213 | /* Sum all resources and setup resource maps */ |
1217 | unused_IRQ = readl(rom_resource_table + UNUSED_IRQ); | 1214 | unused_IRQ = readl(rom_resource_table + UNUSED_IRQ); |
1218 | dbg("unused_IRQ = %x\n", unused_IRQ); | 1215 | dbg("unused_IRQ = %x\n", unused_IRQ); |
@@ -1245,13 +1242,11 @@ int cpqhp_find_available_resources(struct controller *ctrl, void __iomem *rom_st | |||
1245 | 1242 | ||
1246 | temp = 0; | 1243 | temp = 0; |
1247 | 1244 | ||
1248 | if (!cpqhp_nic_irq) { | 1245 | if (!cpqhp_nic_irq) |
1249 | cpqhp_nic_irq = ctrl->cfgspc_irq; | 1246 | cpqhp_nic_irq = ctrl->cfgspc_irq; |
1250 | } | ||
1251 | 1247 | ||
1252 | if (!cpqhp_disk_irq) { | 1248 | if (!cpqhp_disk_irq) |
1253 | cpqhp_disk_irq = ctrl->cfgspc_irq; | 1249 | cpqhp_disk_irq = ctrl->cfgspc_irq; |
1254 | } | ||
1255 | 1250 | ||
1256 | dbg("cpqhp_disk_irq, cpqhp_nic_irq= %d, %d\n", cpqhp_disk_irq, cpqhp_nic_irq); | 1251 | dbg("cpqhp_disk_irq, cpqhp_nic_irq= %d, %d\n", cpqhp_disk_irq, cpqhp_nic_irq); |
1257 | 1252 | ||