diff options
author | Quentin Lambert <lambert.quentin@gmail.com> | 2014-09-07 14:02:04 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-09-24 09:43:03 -0400 |
commit | 382a9c9adc1cd540f5b714b65db315fc1c0b553d (patch) | |
tree | 37a06f5cdfcaa4043bc034d0386b16798b73c2a6 /drivers/pci | |
parent | 52addcf9d6669fa439387610bc65c92fa0980cef (diff) |
PCI: Add space before open parenthesis
Add space before open parenthesis as is conventional.
No functional change.
[bhelgaas: fix a few more in ibmphp, shpchp]
Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/hotplug/acpiphp_ibm.c | 2 | ||||
-rw-r--r-- | drivers/pci/hotplug/cpcihp_generic.c | 28 | ||||
-rw-r--r-- | drivers/pci/hotplug/cpcihp_zt5550.c | 36 | ||||
-rw-r--r-- | drivers/pci/hotplug/cpqphp.h | 2 | ||||
-rw-r--r-- | drivers/pci/hotplug/cpqphp_ctrl.c | 4 | ||||
-rw-r--r-- | drivers/pci/hotplug/ibmphp_res.c | 2 | ||||
-rw-r--r-- | drivers/pci/hotplug/shpchp_ctrl.c | 2 | ||||
-rw-r--r-- | drivers/pci/hotplug/shpchp_hpc.c | 2 |
8 files changed, 39 insertions, 39 deletions
diff --git a/drivers/pci/hotplug/acpiphp_ibm.c b/drivers/pci/hotplug/acpiphp_ibm.c index 8dcccffd6e21..6ca23998ee8f 100644 --- a/drivers/pci/hotplug/acpiphp_ibm.c +++ b/drivers/pci/hotplug/acpiphp_ibm.c | |||
@@ -302,7 +302,7 @@ static int ibm_get_table_from_acpi(char **bufp) | |||
302 | goto read_table_done; | 302 | goto read_table_done; |
303 | } | 303 | } |
304 | 304 | ||
305 | for(size = 0, i = 0; i < package->package.count; i++) { | 305 | for (size = 0, i = 0; i < package->package.count; i++) { |
306 | if (package->package.elements[i].type != ACPI_TYPE_BUFFER) { | 306 | if (package->package.elements[i].type != ACPI_TYPE_BUFFER) { |
307 | pr_err("%s: Invalid APCI element %d\n", __func__, i); | 307 | pr_err("%s: Invalid APCI element %d\n", __func__, i); |
308 | goto read_table_done; | 308 | goto read_table_done; |
diff --git a/drivers/pci/hotplug/cpcihp_generic.c b/drivers/pci/hotplug/cpcihp_generic.c index 04fcd7811400..66b7bbebe493 100644 --- a/drivers/pci/hotplug/cpcihp_generic.c +++ b/drivers/pci/hotplug/cpcihp_generic.c | |||
@@ -56,7 +56,7 @@ | |||
56 | if (debug) \ | 56 | if (debug) \ |
57 | printk (KERN_DEBUG "%s: " format "\n", \ | 57 | printk (KERN_DEBUG "%s: " format "\n", \ |
58 | MY_NAME , ## arg); \ | 58 | MY_NAME , ## arg); \ |
59 | } while(0) | 59 | } while (0) |
60 | #define err(format, arg...) printk(KERN_ERR "%s: " format "\n", MY_NAME , ## arg) | 60 | #define err(format, arg...) printk(KERN_ERR "%s: " format "\n", MY_NAME , ## arg) |
61 | #define info(format, arg...) printk(KERN_INFO "%s: " format "\n", MY_NAME , ## arg) | 61 | #define info(format, arg...) printk(KERN_INFO "%s: " format "\n", MY_NAME , ## arg) |
62 | #define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n", MY_NAME , ## arg) | 62 | #define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n", MY_NAME , ## arg) |
@@ -82,28 +82,28 @@ static int __init validate_parameters(void) | |||
82 | char *p; | 82 | char *p; |
83 | unsigned long tmp; | 83 | unsigned long tmp; |
84 | 84 | ||
85 | if(!bridge) { | 85 | if (!bridge) { |
86 | info("not configured, disabling."); | 86 | info("not configured, disabling."); |
87 | return -EINVAL; | 87 | return -EINVAL; |
88 | } | 88 | } |
89 | str = bridge; | 89 | str = bridge; |
90 | if(!*str) | 90 | if (!*str) |
91 | return -EINVAL; | 91 | return -EINVAL; |
92 | 92 | ||
93 | tmp = simple_strtoul(str, &p, 16); | 93 | tmp = simple_strtoul(str, &p, 16); |
94 | if(p == str || tmp > 0xff) { | 94 | if (p == str || tmp > 0xff) { |
95 | err("Invalid hotplug bus bridge device bus number"); | 95 | err("Invalid hotplug bus bridge device bus number"); |
96 | return -EINVAL; | 96 | return -EINVAL; |
97 | } | 97 | } |
98 | bridge_busnr = (u8) tmp; | 98 | bridge_busnr = (u8) tmp; |
99 | dbg("bridge_busnr = 0x%02x", bridge_busnr); | 99 | dbg("bridge_busnr = 0x%02x", bridge_busnr); |
100 | if(*p != ':') { | 100 | if (*p != ':') { |
101 | err("Invalid hotplug bus bridge device"); | 101 | err("Invalid hotplug bus bridge device"); |
102 | return -EINVAL; | 102 | return -EINVAL; |
103 | } | 103 | } |
104 | str = p + 1; | 104 | str = p + 1; |
105 | tmp = simple_strtoul(str, &p, 16); | 105 | tmp = simple_strtoul(str, &p, 16); |
106 | if(p == str || tmp > 0x1f) { | 106 | if (p == str || tmp > 0x1f) { |
107 | err("Invalid hotplug bus bridge device slot number"); | 107 | err("Invalid hotplug bus bridge device slot number"); |
108 | return -EINVAL; | 108 | return -EINVAL; |
109 | } | 109 | } |
@@ -112,18 +112,18 @@ static int __init validate_parameters(void) | |||
112 | 112 | ||
113 | dbg("first_slot = 0x%02x", first_slot); | 113 | dbg("first_slot = 0x%02x", first_slot); |
114 | dbg("last_slot = 0x%02x", last_slot); | 114 | dbg("last_slot = 0x%02x", last_slot); |
115 | if(!(first_slot && last_slot)) { | 115 | if (!(first_slot && last_slot)) { |
116 | err("Need to specify first_slot and last_slot"); | 116 | err("Need to specify first_slot and last_slot"); |
117 | return -EINVAL; | 117 | return -EINVAL; |
118 | } | 118 | } |
119 | if(last_slot < first_slot) { | 119 | if (last_slot < first_slot) { |
120 | err("first_slot must be less than last_slot"); | 120 | err("first_slot must be less than last_slot"); |
121 | return -EINVAL; | 121 | return -EINVAL; |
122 | } | 122 | } |
123 | 123 | ||
124 | dbg("port = 0x%04x", port); | 124 | dbg("port = 0x%04x", port); |
125 | dbg("enum_bit = 0x%02x", enum_bit); | 125 | dbg("enum_bit = 0x%02x", enum_bit); |
126 | if(enum_bit > 7) { | 126 | if (enum_bit > 7) { |
127 | err("Invalid #ENUM bit"); | 127 | err("Invalid #ENUM bit"); |
128 | return -EINVAL; | 128 | return -EINVAL; |
129 | } | 129 | } |
@@ -151,12 +151,12 @@ static int __init cpcihp_generic_init(void) | |||
151 | return status; | 151 | return status; |
152 | 152 | ||
153 | r = request_region(port, 1, "#ENUM hotswap signal register"); | 153 | r = request_region(port, 1, "#ENUM hotswap signal register"); |
154 | if(!r) | 154 | if (!r) |
155 | return -EBUSY; | 155 | return -EBUSY; |
156 | 156 | ||
157 | dev = pci_get_domain_bus_and_slot(0, bridge_busnr, | 157 | dev = pci_get_domain_bus_and_slot(0, bridge_busnr, |
158 | PCI_DEVFN(bridge_slot, 0)); | 158 | PCI_DEVFN(bridge_slot, 0)); |
159 | if(!dev || dev->hdr_type != PCI_HEADER_TYPE_BRIDGE) { | 159 | if (!dev || dev->hdr_type != PCI_HEADER_TYPE_BRIDGE) { |
160 | err("Invalid bridge device %s", bridge); | 160 | err("Invalid bridge device %s", bridge); |
161 | pci_dev_put(dev); | 161 | pci_dev_put(dev); |
162 | return -EINVAL; | 162 | return -EINVAL; |
@@ -169,21 +169,21 @@ static int __init cpcihp_generic_init(void) | |||
169 | generic_hpc.ops = &generic_hpc_ops; | 169 | generic_hpc.ops = &generic_hpc_ops; |
170 | 170 | ||
171 | status = cpci_hp_register_controller(&generic_hpc); | 171 | status = cpci_hp_register_controller(&generic_hpc); |
172 | if(status != 0) { | 172 | if (status != 0) { |
173 | err("Could not register cPCI hotplug controller"); | 173 | err("Could not register cPCI hotplug controller"); |
174 | return -ENODEV; | 174 | return -ENODEV; |
175 | } | 175 | } |
176 | dbg("registered controller"); | 176 | dbg("registered controller"); |
177 | 177 | ||
178 | status = cpci_hp_register_bus(bus, first_slot, last_slot); | 178 | status = cpci_hp_register_bus(bus, first_slot, last_slot); |
179 | if(status != 0) { | 179 | if (status != 0) { |
180 | err("Could not register cPCI hotplug bus"); | 180 | err("Could not register cPCI hotplug bus"); |
181 | goto init_bus_register_error; | 181 | goto init_bus_register_error; |
182 | } | 182 | } |
183 | dbg("registered bus"); | 183 | dbg("registered bus"); |
184 | 184 | ||
185 | status = cpci_hp_start(); | 185 | status = cpci_hp_start(); |
186 | if(status != 0) { | 186 | if (status != 0) { |
187 | err("Could not started cPCI hotplug system"); | 187 | err("Could not started cPCI hotplug system"); |
188 | goto init_start_error; | 188 | goto init_start_error; |
189 | } | 189 | } |
diff --git a/drivers/pci/hotplug/cpcihp_zt5550.c b/drivers/pci/hotplug/cpcihp_zt5550.c index 6757b3ef7e10..e6180201819e 100644 --- a/drivers/pci/hotplug/cpcihp_zt5550.c +++ b/drivers/pci/hotplug/cpcihp_zt5550.c | |||
@@ -51,7 +51,7 @@ | |||
51 | if (debug) \ | 51 | if (debug) \ |
52 | printk (KERN_DEBUG "%s: " format "\n", \ | 52 | printk (KERN_DEBUG "%s: " format "\n", \ |
53 | MY_NAME , ## arg); \ | 53 | MY_NAME , ## arg); \ |
54 | } while(0) | 54 | } while (0) |
55 | #define err(format, arg...) printk(KERN_ERR "%s: " format "\n", MY_NAME , ## arg) | 55 | #define err(format, arg...) printk(KERN_ERR "%s: " format "\n", MY_NAME , ## arg) |
56 | #define info(format, arg...) printk(KERN_INFO "%s: " format "\n", MY_NAME , ## arg) | 56 | #define info(format, arg...) printk(KERN_INFO "%s: " format "\n", MY_NAME , ## arg) |
57 | #define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n", MY_NAME , ## arg) | 57 | #define warn(format, arg...) printk(KERN_WARNING "%s: " format "\n", MY_NAME , ## arg) |
@@ -82,13 +82,13 @@ static int zt5550_hc_config(struct pci_dev *pdev) | |||
82 | int ret; | 82 | int ret; |
83 | 83 | ||
84 | /* Since we know that no boards exist with two HC chips, treat it as an error */ | 84 | /* Since we know that no boards exist with two HC chips, treat it as an error */ |
85 | if(hc_dev) { | 85 | if (hc_dev) { |
86 | err("too many host controller devices?"); | 86 | err("too many host controller devices?"); |
87 | return -EBUSY; | 87 | return -EBUSY; |
88 | } | 88 | } |
89 | 89 | ||
90 | ret = pci_enable_device(pdev); | 90 | ret = pci_enable_device(pdev); |
91 | if(ret) { | 91 | if (ret) { |
92 | err("cannot enable %s\n", pci_name(pdev)); | 92 | err("cannot enable %s\n", pci_name(pdev)); |
93 | return ret; | 93 | return ret; |
94 | } | 94 | } |
@@ -98,7 +98,7 @@ static int zt5550_hc_config(struct pci_dev *pdev) | |||
98 | dbg("pci resource start %llx", (unsigned long long)pci_resource_start(hc_dev, 1)); | 98 | dbg("pci resource start %llx", (unsigned long long)pci_resource_start(hc_dev, 1)); |
99 | dbg("pci resource len %llx", (unsigned long long)pci_resource_len(hc_dev, 1)); | 99 | dbg("pci resource len %llx", (unsigned long long)pci_resource_len(hc_dev, 1)); |
100 | 100 | ||
101 | if(!request_mem_region(pci_resource_start(hc_dev, 1), | 101 | if (!request_mem_region(pci_resource_start(hc_dev, 1), |
102 | pci_resource_len(hc_dev, 1), MY_NAME)) { | 102 | pci_resource_len(hc_dev, 1), MY_NAME)) { |
103 | err("cannot reserve MMIO region"); | 103 | err("cannot reserve MMIO region"); |
104 | ret = -ENOMEM; | 104 | ret = -ENOMEM; |
@@ -107,7 +107,7 @@ static int zt5550_hc_config(struct pci_dev *pdev) | |||
107 | 107 | ||
108 | hc_registers = | 108 | hc_registers = |
109 | ioremap(pci_resource_start(hc_dev, 1), pci_resource_len(hc_dev, 1)); | 109 | ioremap(pci_resource_start(hc_dev, 1), pci_resource_len(hc_dev, 1)); |
110 | if(!hc_registers) { | 110 | if (!hc_registers) { |
111 | err("cannot remap MMIO region %llx @ %llx", | 111 | err("cannot remap MMIO region %llx @ %llx", |
112 | (unsigned long long)pci_resource_len(hc_dev, 1), | 112 | (unsigned long long)pci_resource_len(hc_dev, 1), |
113 | (unsigned long long)pci_resource_start(hc_dev, 1)); | 113 | (unsigned long long)pci_resource_start(hc_dev, 1)); |
@@ -146,7 +146,7 @@ exit_disable_device: | |||
146 | 146 | ||
147 | static int zt5550_hc_cleanup(void) | 147 | static int zt5550_hc_cleanup(void) |
148 | { | 148 | { |
149 | if(!hc_dev) | 149 | if (!hc_dev) |
150 | return -ENODEV; | 150 | return -ENODEV; |
151 | 151 | ||
152 | iounmap(hc_registers); | 152 | iounmap(hc_registers); |
@@ -170,9 +170,9 @@ static int zt5550_hc_check_irq(void *dev_id) | |||
170 | u8 reg; | 170 | u8 reg; |
171 | 171 | ||
172 | ret = 0; | 172 | ret = 0; |
173 | if(dev_id == zt5550_hpc.dev_id) { | 173 | if (dev_id == zt5550_hpc.dev_id) { |
174 | reg = readb(csr_int_status); | 174 | reg = readb(csr_int_status); |
175 | if(reg) | 175 | if (reg) |
176 | ret = 1; | 176 | ret = 1; |
177 | } | 177 | } |
178 | return ret; | 178 | return ret; |
@@ -182,7 +182,7 @@ static int zt5550_hc_enable_irq(void) | |||
182 | { | 182 | { |
183 | u8 reg; | 183 | u8 reg; |
184 | 184 | ||
185 | if(hc_dev == NULL) { | 185 | if (hc_dev == NULL) { |
186 | return -ENODEV; | 186 | return -ENODEV; |
187 | } | 187 | } |
188 | reg = readb(csr_int_mask); | 188 | reg = readb(csr_int_mask); |
@@ -195,7 +195,7 @@ static int zt5550_hc_disable_irq(void) | |||
195 | { | 195 | { |
196 | u8 reg; | 196 | u8 reg; |
197 | 197 | ||
198 | if(hc_dev == NULL) { | 198 | if (hc_dev == NULL) { |
199 | return -ENODEV; | 199 | return -ENODEV; |
200 | } | 200 | } |
201 | 201 | ||
@@ -210,7 +210,7 @@ static int zt5550_hc_init_one (struct pci_dev *pdev, const struct pci_device_id | |||
210 | int status; | 210 | int status; |
211 | 211 | ||
212 | status = zt5550_hc_config(pdev); | 212 | status = zt5550_hc_config(pdev); |
213 | if(status != 0) { | 213 | if (status != 0) { |
214 | return status; | 214 | return status; |
215 | } | 215 | } |
216 | dbg("returned from zt5550_hc_config"); | 216 | dbg("returned from zt5550_hc_config"); |
@@ -218,7 +218,7 @@ static int zt5550_hc_init_one (struct pci_dev *pdev, const struct pci_device_id | |||
218 | memset(&zt5550_hpc, 0, sizeof (struct cpci_hp_controller)); | 218 | memset(&zt5550_hpc, 0, sizeof (struct cpci_hp_controller)); |
219 | zt5550_hpc_ops.query_enum = zt5550_hc_query_enum; | 219 | zt5550_hpc_ops.query_enum = zt5550_hc_query_enum; |
220 | zt5550_hpc.ops = &zt5550_hpc_ops; | 220 | zt5550_hpc.ops = &zt5550_hpc_ops; |
221 | if(!poll) { | 221 | if (!poll) { |
222 | zt5550_hpc.irq = hc_dev->irq; | 222 | zt5550_hpc.irq = hc_dev->irq; |
223 | zt5550_hpc.irq_flags = IRQF_SHARED; | 223 | zt5550_hpc.irq_flags = IRQF_SHARED; |
224 | zt5550_hpc.dev_id = hc_dev; | 224 | zt5550_hpc.dev_id = hc_dev; |
@@ -231,14 +231,14 @@ static int zt5550_hc_init_one (struct pci_dev *pdev, const struct pci_device_id | |||
231 | } | 231 | } |
232 | 232 | ||
233 | status = cpci_hp_register_controller(&zt5550_hpc); | 233 | status = cpci_hp_register_controller(&zt5550_hpc); |
234 | if(status != 0) { | 234 | if (status != 0) { |
235 | err("could not register cPCI hotplug controller"); | 235 | err("could not register cPCI hotplug controller"); |
236 | goto init_hc_error; | 236 | goto init_hc_error; |
237 | } | 237 | } |
238 | dbg("registered controller"); | 238 | dbg("registered controller"); |
239 | 239 | ||
240 | /* Look for first device matching cPCI bus's bridge vendor and device IDs */ | 240 | /* Look for first device matching cPCI bus's bridge vendor and device IDs */ |
241 | if(!(bus0_dev = pci_get_device(PCI_VENDOR_ID_DEC, | 241 | if (!(bus0_dev = pci_get_device(PCI_VENDOR_ID_DEC, |
242 | PCI_DEVICE_ID_DEC_21154, NULL))) { | 242 | PCI_DEVICE_ID_DEC_21154, NULL))) { |
243 | status = -ENODEV; | 243 | status = -ENODEV; |
244 | goto init_register_error; | 244 | goto init_register_error; |
@@ -247,14 +247,14 @@ static int zt5550_hc_init_one (struct pci_dev *pdev, const struct pci_device_id | |||
247 | pci_dev_put(bus0_dev); | 247 | pci_dev_put(bus0_dev); |
248 | 248 | ||
249 | status = cpci_hp_register_bus(bus0, 0x0a, 0x0f); | 249 | status = cpci_hp_register_bus(bus0, 0x0a, 0x0f); |
250 | if(status != 0) { | 250 | if (status != 0) { |
251 | err("could not register cPCI hotplug bus"); | 251 | err("could not register cPCI hotplug bus"); |
252 | goto init_register_error; | 252 | goto init_register_error; |
253 | } | 253 | } |
254 | dbg("registered bus"); | 254 | dbg("registered bus"); |
255 | 255 | ||
256 | status = cpci_hp_start(); | 256 | status = cpci_hp_start(); |
257 | if(status != 0) { | 257 | if (status != 0) { |
258 | err("could not started cPCI hotplug system"); | 258 | err("could not started cPCI hotplug system"); |
259 | cpci_hp_unregister_bus(bus0); | 259 | cpci_hp_unregister_bus(bus0); |
260 | goto init_register_error; | 260 | goto init_register_error; |
@@ -300,11 +300,11 @@ static int __init zt5550_init(void) | |||
300 | 300 | ||
301 | info(DRIVER_DESC " version: " DRIVER_VERSION); | 301 | info(DRIVER_DESC " version: " DRIVER_VERSION); |
302 | r = request_region(ENUM_PORT, 1, "#ENUM hotswap signal register"); | 302 | r = request_region(ENUM_PORT, 1, "#ENUM hotswap signal register"); |
303 | if(!r) | 303 | if (!r) |
304 | return -EBUSY; | 304 | return -EBUSY; |
305 | 305 | ||
306 | rc = pci_register_driver(&zt5550_hc_driver); | 306 | rc = pci_register_driver(&zt5550_hc_driver); |
307 | if(rc < 0) | 307 | if (rc < 0) |
308 | release_region(ENUM_PORT, 1); | 308 | release_region(ENUM_PORT, 1); |
309 | return rc; | 309 | return rc; |
310 | } | 310 | } |
diff --git a/drivers/pci/hotplug/cpqphp.h b/drivers/pci/hotplug/cpqphp.h index 0450f405807d..b28b2d2184cd 100644 --- a/drivers/pci/hotplug/cpqphp.h +++ b/drivers/pci/hotplug/cpqphp.h | |||
@@ -690,7 +690,7 @@ static inline int cpq_get_latch_status(struct controller *ctrl, | |||
690 | 690 | ||
691 | status = (readl(ctrl->hpc_reg + INT_INPUT_CLEAR) & (0x01L << hp_slot)); | 691 | status = (readl(ctrl->hpc_reg + INT_INPUT_CLEAR) & (0x01L << hp_slot)); |
692 | 692 | ||
693 | return(status == 0) ? 1 : 0; | 693 | return (status == 0) ? 1 : 0; |
694 | } | 694 | } |
695 | 695 | ||
696 | 696 | ||
diff --git a/drivers/pci/hotplug/cpqphp_ctrl.c b/drivers/pci/hotplug/cpqphp_ctrl.c index bde47fce3248..476482e82fd2 100644 --- a/drivers/pci/hotplug/cpqphp_ctrl.c +++ b/drivers/pci/hotplug/cpqphp_ctrl.c | |||
@@ -1143,7 +1143,7 @@ static u8 set_controller_speed(struct controller *ctrl, u8 adapter_speed, u8 hp_ | |||
1143 | /* We don't allow freq/mode changes if we find another adapter running | 1143 | /* We don't allow freq/mode changes if we find another adapter running |
1144 | * in another slot on this controller | 1144 | * in another slot on this controller |
1145 | */ | 1145 | */ |
1146 | for(slot = ctrl->slot; slot; slot = slot->next) { | 1146 | for (slot = ctrl->slot; slot; slot = slot->next) { |
1147 | if (slot->device == (hp_slot + ctrl->slot_device_offset)) | 1147 | if (slot->device == (hp_slot + ctrl->slot_device_offset)) |
1148 | continue; | 1148 | continue; |
1149 | if (!slot->hotplug_slot || !slot->hotplug_slot->info) | 1149 | if (!slot->hotplug_slot || !slot->hotplug_slot->info) |
@@ -1193,7 +1193,7 @@ static u8 set_controller_speed(struct controller *ctrl, u8 adapter_speed, u8 hp_ | |||
1193 | 1193 | ||
1194 | reg16 = readw(ctrl->hpc_reg + NEXT_CURR_FREQ); | 1194 | reg16 = readw(ctrl->hpc_reg + NEXT_CURR_FREQ); |
1195 | reg16 &= ~0x000F; | 1195 | reg16 &= ~0x000F; |
1196 | switch(adapter_speed) { | 1196 | switch (adapter_speed) { |
1197 | case(PCI_SPEED_133MHz_PCIX): | 1197 | case(PCI_SPEED_133MHz_PCIX): |
1198 | reg = 0x75; | 1198 | reg = 0x75; |
1199 | reg16 |= 0xB; | 1199 | reg16 |= 0xB; |
diff --git a/drivers/pci/hotplug/ibmphp_res.c b/drivers/pci/hotplug/ibmphp_res.c index f34745abd5b6..78cf442e36d6 100644 --- a/drivers/pci/hotplug/ibmphp_res.c +++ b/drivers/pci/hotplug/ibmphp_res.c | |||
@@ -1335,7 +1335,7 @@ int ibmphp_check_resource (struct resource_node *res, u8 bridge) | |||
1335 | return -EINVAL; | 1335 | return -EINVAL; |
1336 | } | 1336 | } |
1337 | } | 1337 | } |
1338 | } /* end if(!res_cur) */ | 1338 | } /* end if (!res_cur) */ |
1339 | return -EINVAL; | 1339 | return -EINVAL; |
1340 | } | 1340 | } |
1341 | 1341 | ||
diff --git a/drivers/pci/hotplug/shpchp_ctrl.c b/drivers/pci/hotplug/shpchp_ctrl.c index a81fb67ea9a1..764650b4de3f 100644 --- a/drivers/pci/hotplug/shpchp_ctrl.c +++ b/drivers/pci/hotplug/shpchp_ctrl.c | |||
@@ -595,7 +595,7 @@ static int shpchp_enable_slot (struct slot *p_slot) | |||
595 | ctrl_dbg(ctrl, "%s: p_slot->pwr_save %x\n", __func__, p_slot->pwr_save); | 595 | ctrl_dbg(ctrl, "%s: p_slot->pwr_save %x\n", __func__, p_slot->pwr_save); |
596 | p_slot->hpc_ops->get_latch_status(p_slot, &getstatus); | 596 | p_slot->hpc_ops->get_latch_status(p_slot, &getstatus); |
597 | 597 | ||
598 | if(((p_slot->ctrl->pci_dev->vendor == PCI_VENDOR_ID_AMD) || | 598 | if (((p_slot->ctrl->pci_dev->vendor == PCI_VENDOR_ID_AMD) || |
599 | (p_slot->ctrl->pci_dev->device == PCI_DEVICE_ID_AMD_POGO_7458)) | 599 | (p_slot->ctrl->pci_dev->device == PCI_DEVICE_ID_AMD_POGO_7458)) |
600 | && p_slot->ctrl->num_slots == 1) { | 600 | && p_slot->ctrl->num_slots == 1) { |
601 | /* handle amd pogo errata; this must be done before enable */ | 601 | /* handle amd pogo errata; this must be done before enable */ |
diff --git a/drivers/pci/hotplug/shpchp_hpc.c b/drivers/pci/hotplug/shpchp_hpc.c index 29e22352822c..1d89916351ed 100644 --- a/drivers/pci/hotplug/shpchp_hpc.c +++ b/drivers/pci/hotplug/shpchp_hpc.c | |||
@@ -798,7 +798,7 @@ static irqreturn_t shpc_isr(int irq, void *dev_id) | |||
798 | 798 | ||
799 | ctrl_dbg(ctrl, "%s: intr_loc = %x\n", __func__, intr_loc); | 799 | ctrl_dbg(ctrl, "%s: intr_loc = %x\n", __func__, intr_loc); |
800 | 800 | ||
801 | if(!shpchp_poll_mode) { | 801 | if (!shpchp_poll_mode) { |
802 | /* | 802 | /* |
803 | * Mask Global Interrupt Mask - see implementation | 803 | * Mask Global Interrupt Mask - see implementation |
804 | * note on p. 139 of SHPC spec rev 1.0 | 804 | * note on p. 139 of SHPC spec rev 1.0 |