diff options
author | Ryan Desfosses <ryan@desfo.org> | 2014-04-18 20:13:49 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-06-10 22:20:19 -0400 |
commit | 3c78bc61f5ef3bc87e7f94f67ec737d2273f120b (patch) | |
tree | 490efb8676389718e78a4d6775ad668538ecaf4f /drivers/pci/search.c | |
parent | b7fe943421396b61b9f7a97c2554ed999e0f3658 (diff) |
PCI: Whitespace cleanup
Fix various whitespace errors.
No functional change.
[bhelgaas: fix other similar problems]
Signed-off-by: Ryan Desfosses <ryan@desfo.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/search.c')
-rw-r--r-- | drivers/pci/search.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/pci/search.c b/drivers/pci/search.c index a66ed7525841..827ad831f1dd 100644 --- a/drivers/pci/search.c +++ b/drivers/pci/search.c | |||
@@ -110,8 +110,7 @@ int pci_for_each_dma_alias(struct pci_dev *pdev, | |||
110 | * legacy PCI bridge and the bridge is directly connected to bus 0), return its | 110 | * legacy PCI bridge and the bridge is directly connected to bus 0), return its |
111 | * parent | 111 | * parent |
112 | */ | 112 | */ |
113 | struct pci_dev * | 113 | struct pci_dev *pci_find_upstream_pcie_bridge(struct pci_dev *pdev) |
114 | pci_find_upstream_pcie_bridge(struct pci_dev *pdev) | ||
115 | { | 114 | { |
116 | struct pci_dev *tmp = NULL; | 115 | struct pci_dev *tmp = NULL; |
117 | 116 | ||
@@ -143,12 +142,12 @@ static struct pci_bus *pci_do_find_bus(struct pci_bus *bus, unsigned char busnr) | |||
143 | struct pci_bus *child; | 142 | struct pci_bus *child; |
144 | struct pci_bus *tmp; | 143 | struct pci_bus *tmp; |
145 | 144 | ||
146 | if(bus->number == busnr) | 145 | if (bus->number == busnr) |
147 | return bus; | 146 | return bus; |
148 | 147 | ||
149 | list_for_each_entry(tmp, &bus->children, node) { | 148 | list_for_each_entry(tmp, &bus->children, node) { |
150 | child = pci_do_find_bus(tmp, busnr); | 149 | child = pci_do_find_bus(tmp, busnr); |
151 | if(child) | 150 | if (child) |
152 | return child; | 151 | return child; |
153 | } | 152 | } |
154 | return NULL; | 153 | return NULL; |
@@ -163,7 +162,7 @@ static struct pci_bus *pci_do_find_bus(struct pci_bus *bus, unsigned char busnr) | |||
163 | * in the global list of PCI buses. If the bus is found, a pointer to its | 162 | * in the global list of PCI buses. If the bus is found, a pointer to its |
164 | * data structure is returned. If no bus is found, %NULL is returned. | 163 | * data structure is returned. If no bus is found, %NULL is returned. |
165 | */ | 164 | */ |
166 | struct pci_bus * pci_find_bus(int domain, int busnr) | 165 | struct pci_bus *pci_find_bus(int domain, int busnr) |
167 | { | 166 | { |
168 | struct pci_bus *bus = NULL; | 167 | struct pci_bus *bus = NULL; |
169 | struct pci_bus *tmp_bus; | 168 | struct pci_bus *tmp_bus; |
@@ -188,8 +187,7 @@ EXPORT_SYMBOL(pci_find_bus); | |||
188 | * @from is not %NULL, searches continue from next device on the | 187 | * @from is not %NULL, searches continue from next device on the |
189 | * global list. | 188 | * global list. |
190 | */ | 189 | */ |
191 | struct pci_bus * | 190 | struct pci_bus *pci_find_next_bus(const struct pci_bus *from) |
192 | pci_find_next_bus(const struct pci_bus *from) | ||
193 | { | 191 | { |
194 | struct list_head *n; | 192 | struct list_head *n; |
195 | struct pci_bus *b = NULL; | 193 | struct pci_bus *b = NULL; |
@@ -357,8 +355,8 @@ EXPORT_SYMBOL(pci_get_subsys); | |||
357 | * from next device on the global list. The reference count for @from is | 355 | * from next device on the global list. The reference count for @from is |
358 | * always decremented if it is not %NULL. | 356 | * always decremented if it is not %NULL. |
359 | */ | 357 | */ |
360 | struct pci_dev * | 358 | struct pci_dev *pci_get_device(unsigned int vendor, unsigned int device, |
361 | pci_get_device(unsigned int vendor, unsigned int device, struct pci_dev *from) | 359 | struct pci_dev *from) |
362 | { | 360 | { |
363 | return pci_get_subsys(vendor, device, PCI_ANY_ID, PCI_ANY_ID, from); | 361 | return pci_get_subsys(vendor, device, PCI_ANY_ID, PCI_ANY_ID, from); |
364 | } | 362 | } |