diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2013-11-14 13:28:18 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-11-14 13:28:18 -0500 |
commit | f7625980f5820edd1a73536e1a03bcbc1f889fec (patch) | |
tree | 145e76f39b3e1d08d3e7a48a0993c0cd59088cc6 /drivers/pci/host | |
parent | 4fbf888accb39af423f271111d44e8186f053723 (diff) |
PCI: Fix whitespace, capitalization, and spelling errors
Fix whitespace, capitalization, and spelling errors. No functional change.
I know "busses" is not an error, but "buses" was more common, so I used it
consistently.
Signed-off-by: Marta Rybczynska <rybczynska@gmail.com> (pci_reset_bridge_secondary_bus())
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/pci/host')
-rw-r--r-- | drivers/pci/host/pci-tegra.c | 12 | ||||
-rw-r--r-- | drivers/pci/host/pcie-designware.c | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/pci/host/pci-tegra.c b/drivers/pci/host/pci-tegra.c index 7c4f38dd42ba..0afbbbc55c81 100644 --- a/drivers/pci/host/pci-tegra.c +++ b/drivers/pci/host/pci-tegra.c | |||
@@ -249,7 +249,7 @@ struct tegra_pcie { | |||
249 | void __iomem *afi; | 249 | void __iomem *afi; |
250 | int irq; | 250 | int irq; |
251 | 251 | ||
252 | struct list_head busses; | 252 | struct list_head buses; |
253 | struct resource *cs; | 253 | struct resource *cs; |
254 | 254 | ||
255 | struct resource io; | 255 | struct resource io; |
@@ -399,14 +399,14 @@ free: | |||
399 | 399 | ||
400 | /* | 400 | /* |
401 | * Look up a virtual address mapping for the specified bus number. If no such | 401 | * Look up a virtual address mapping for the specified bus number. If no such |
402 | * mapping existis, try to create one. | 402 | * mapping exists, try to create one. |
403 | */ | 403 | */ |
404 | static void __iomem *tegra_pcie_bus_map(struct tegra_pcie *pcie, | 404 | static void __iomem *tegra_pcie_bus_map(struct tegra_pcie *pcie, |
405 | unsigned int busnr) | 405 | unsigned int busnr) |
406 | { | 406 | { |
407 | struct tegra_pcie_bus *bus; | 407 | struct tegra_pcie_bus *bus; |
408 | 408 | ||
409 | list_for_each_entry(bus, &pcie->busses, list) | 409 | list_for_each_entry(bus, &pcie->buses, list) |
410 | if (bus->nr == busnr) | 410 | if (bus->nr == busnr) |
411 | return (void __iomem *)bus->area->addr; | 411 | return (void __iomem *)bus->area->addr; |
412 | 412 | ||
@@ -414,7 +414,7 @@ static void __iomem *tegra_pcie_bus_map(struct tegra_pcie *pcie, | |||
414 | if (IS_ERR(bus)) | 414 | if (IS_ERR(bus)) |
415 | return NULL; | 415 | return NULL; |
416 | 416 | ||
417 | list_add_tail(&bus->list, &pcie->busses); | 417 | list_add_tail(&bus->list, &pcie->buses); |
418 | 418 | ||
419 | return (void __iomem *)bus->area->addr; | 419 | return (void __iomem *)bus->area->addr; |
420 | } | 420 | } |
@@ -808,7 +808,7 @@ static int tegra_pcie_enable_controller(struct tegra_pcie *pcie) | |||
808 | value &= ~AFI_FUSE_PCIE_T0_GEN2_DIS; | 808 | value &= ~AFI_FUSE_PCIE_T0_GEN2_DIS; |
809 | afi_writel(pcie, value, AFI_FUSE); | 809 | afi_writel(pcie, value, AFI_FUSE); |
810 | 810 | ||
811 | /* initialze internal PHY, enable up to 16 PCIE lanes */ | 811 | /* initialize internal PHY, enable up to 16 PCIE lanes */ |
812 | pads_writel(pcie, 0x0, PADS_CTL_SEL); | 812 | pads_writel(pcie, 0x0, PADS_CTL_SEL); |
813 | 813 | ||
814 | /* override IDDQ to 1 on all 4 lanes */ | 814 | /* override IDDQ to 1 on all 4 lanes */ |
@@ -1624,7 +1624,7 @@ static int tegra_pcie_probe(struct platform_device *pdev) | |||
1624 | if (!pcie) | 1624 | if (!pcie) |
1625 | return -ENOMEM; | 1625 | return -ENOMEM; |
1626 | 1626 | ||
1627 | INIT_LIST_HEAD(&pcie->busses); | 1627 | INIT_LIST_HEAD(&pcie->buses); |
1628 | INIT_LIST_HEAD(&pcie->ports); | 1628 | INIT_LIST_HEAD(&pcie->ports); |
1629 | pcie->soc_data = match->data; | 1629 | pcie->soc_data = match->data; |
1630 | pcie->dev = &pdev->dev; | 1630 | pcie->dev = &pdev->dev; |
diff --git a/drivers/pci/host/pcie-designware.c b/drivers/pci/host/pcie-designware.c index 1e1fea4d959b..e33b68be0391 100644 --- a/drivers/pci/host/pcie-designware.c +++ b/drivers/pci/host/pcie-designware.c | |||
@@ -197,7 +197,7 @@ static int find_valid_pos0(struct pcie_port *pp, int msgvec, int pos, int *pos0) | |||
197 | return -ENOSPC; | 197 | return -ENOSPC; |
198 | /* | 198 | /* |
199 | * Check if this position is at correct offset.nvec is always a | 199 | * Check if this position is at correct offset.nvec is always a |
200 | * power of two. pos0 must be nvec bit alligned. | 200 | * power of two. pos0 must be nvec bit aligned. |
201 | */ | 201 | */ |
202 | if (pos % msgvec) | 202 | if (pos % msgvec) |
203 | pos += msgvec - (pos % msgvec); | 203 | pos += msgvec - (pos % msgvec); |