PCI: spear: Add exynos spear13xx before add_pcie_port/pcie_init
PATCH 1/1 PCI: spear: Add exynos spear13xx before add_pcie_port/pcie_init
The add_pcie_port/pcie_init functions are SPEAr13xx-specific. Add exynos prefix to avoid collision in global name space.
--- drivers/pci/host/pcie-spear13xx.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
drivers/pci/host/pcie-spear13xx.c +5 -4
@@ -269,7 +269,8 @@ static struct pcie_host_ops spear13xx_pcie_host_ops = { .host_init = spear13xx_pcie_host_init, }; -static int add_pcie_port (struct pcie_port *pp,struct platform_device *pdev) +static int spear13xx_add_pcie_port (struct pcie_port *pp, +struct platform_device *pdev) {struct device *dev = &pdev->dev;int ret;
@@ -352,7 +353,7 @@ static int __init spear13xx_pcie_probe(struct platform_device *pdev)if (of_property_read_bool (np,"st,pcie-is-gen1" )) spear13xx_pcie->is_gen1 = true; - ret =add_pcie_port (pp, pdev); + ret =spear13xx_add_pcie_port (pp, pdev);if (ret <0 ) goto fail_clk;
@@ -382,11 +383,11 @@ static struct platform_driver spear13xx_pcie_driver __initdata = {/* SPEAr13xx PCIe driver does not allow module unload */ -static int __init pcie_init (void ) +static int __init spear13xx_pcie_init (void ) {return platform_driver_register (&spear13xx_pcie_driver); } -module_init (pcie_init); +module_init (spear13xx_pcie_init);MODULE_DESCRIPTION ("ST Microelectronics SPEAr13xx PCIe host controller driver" );MODULE_AUTHOR ("Pratyush Anand <[email protected]>" );
Signature · 1 line
1.7.9.5
PATCH v2 1/1 PCI: spear: Add spear13xx before add_pcie_port/pcie_init
The add_pcie_port/pcie_init functions are SPEAr13xx-specific. Add spear13xx prefix to avoid collision in global name space.
---
Change since v1:
- Remove 'exynos' typo from the commit message.
drivers/pci/host/pcie-spear13xx.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
drivers/pci/host/pcie-spear13xx.c +5 -4
@@ -269,7 +269,8 @@ static struct pcie_host_ops spear13xx_pcie_host_ops = { .host_init = spear13xx_pcie_host_init, }; -static int add_pcie_port (struct pcie_port *pp,struct platform_device *pdev) +static int spear13xx_add_pcie_port (struct pcie_port *pp, +struct platform_device *pdev) {struct device *dev = &pdev->dev;int ret;
@@ -352,7 +353,7 @@ static int __init spear13xx_pcie_probe(struct platform_device *pdev)if (of_property_read_bool (np,"st,pcie-is-gen1" )) spear13xx_pcie->is_gen1 = true; - ret =add_pcie_port (pp, pdev); + ret =spear13xx_add_pcie_port (pp, pdev);if (ret <0 ) goto fail_clk;
@@ -382,11 +383,11 @@ static struct platform_driver spear13xx_pcie_driver __initdata = {/* SPEAr13xx PCIe driver does not allow module unload */ -static int __init pcie_init (void ) +static int __init spear13xx_pcie_init (void ) {return platform_driver_register (&spear13xx_pcie_driver); } -module_init (pcie_init); +module_init (spear13xx_pcie_init);MODULE_DESCRIPTION ("ST Microelectronics SPEAr13xx PCIe host controller driver" );MODULE_AUTHOR ("Pratyush Anand <[email protected]>" );
Signature · 1 line
1.7.9.5
Re: [PATCH V2] PCI: spear: Add spear13xx before add_pcie_port/pcie_init
Quoted 7 lines · Jingoo Han
The add_pcie_port/pcie_init functions are SPEAr13xx-specific. Add spear13xx prefix to avoid collision in global name space.
Signed-off-by Jingoo Han <[email protected]>---
Change since v1:
- Remove 'exynos' typo from the commit message.
Its better now, sorry for earlier reply.
Quoted 31 lines
drivers/pci/host/pcie-spear13xx.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)drivers/pci/host/pcie-spear13xx.c +3
-2@@ -269,7 +269,8 @@ static struct pcie_host_ops spear13xx_pcie_host_ops = { .host_init = spear13xx_pcie_host_init, }; -static int add_pcie_port (struct pcie_port *pp,struct platform_device *pdev) +static int spear13xx_add_pcie_port (struct pcie_port *pp, +struct platform_device *pdev) {struct device *dev = &pdev->dev;int ret;@@ -352,7 +353,7 @@ static int __init spear13xx_pcie_probe(struct platform_device *pdev)if (of_property_read_bool (np,"st,pcie-is-gen1" )) spear13xx_pcie->is_gen1 = true; - ret =add_pcie_port (pp, pdev); + ret =spear13xx_add_pcie_port (pp, pdev);if (ret <0 ) goto fail_clk;@@ -382,11 +383,11 @@ static struct platform_driver spear13xx_pcie_driver __initdata = {/* SPEAr13xx PCIe driver does not allow module unload */
drivers/pci/host/pcie-spear13xx.c static struct platform_driver spear13xx_pcie_driver __initdata = { · line 393
Quoted 10 lines
drivers/pci/host/pcie-spear13xx.c +2
-2-static int __init pcie_init (void ) +static int __init spear13xx_pcie_init (void ) {return platform_driver_register (&spear13xx_pcie_driver); } -module_init (pcie_init); +module_init (spear13xx_pcie_init);MODULE_DESCRIPTION ("ST Microelectronics SPEAr13xx PCIe host controller driver" );MODULE_AUTHOR ("Pratyush Anand <[email protected]>" );
Bjorn Helgaas
maintainerRe: [PATCH V2] PCI: spear: Add spear13xx before add_pcie_port/pcie_init
In reply to Jingoo HanQuoted 4 lines · Jingoo Han
The add_pcie_port/pcie_init functions are SPEAr13xx-specific. Add spear13xx prefix to avoid collision in global name space.
Signed-off-by Jingoo Han <[email protected]>
Applied with Viresh's ack to pci/host-spear for v3.19, thanks!
Quoted 48 lines
---
Change since v1:
- Remove 'exynos' typo from the commit message.drivers/pci/host/pcie-spear13xx.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)drivers/pci/host/pcie-spear13xx.c +5
-4@@ -269,7 +269,8 @@ static struct pcie_host_ops spear13xx_pcie_host_ops = { .host_init = spear13xx_pcie_host_init, }; -static int add_pcie_port (struct pcie_port *pp,struct platform_device *pdev) +static int spear13xx_add_pcie_port (struct pcie_port *pp, +struct platform_device *pdev) {struct device *dev = &pdev->dev;int ret;@@ -352,7 +353,7 @@ static int __init spear13xx_pcie_probe(struct platform_device *pdev)if (of_property_read_bool (np,"st,pcie-is-gen1" )) spear13xx_pcie->is_gen1 = true; - ret =add_pcie_port (pp, pdev); + ret =spear13xx_add_pcie_port (pp, pdev);if (ret <0 ) goto fail_clk;@@ -382,11 +383,11 @@ static struct platform_driver spear13xx_pcie_driver __initdata = {/* SPEAr13xx PCIe driver does not allow module unload */ -static int __init pcie_init (void ) +static int __init spear13xx_pcie_init (void ) {return platform_driver_register (&spear13xx_pcie_driver); } -module_init (pcie_init); +module_init (spear13xx_pcie_init);MODULE_DESCRIPTION ("ST Microelectronics SPEAr13xx PCIe host controller driver" );MODULE_AUTHOR ("Pratyush Anand <[email protected]>" );Signature · 1 line
1.7.9.5
Quoted 7 lines · Jingoo Han
The add_pcie_port/pcie_init functions are SPEAr13xx-specific. Add exynos prefix to avoid collision in global name space.
Signed-off-by Jingoo Han <[email protected]>--- drivers/pci/host/pcie-spear13xx.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
The diff looks fine but log and subject aren't correct.. SPEAr13xx is not an Exynos SoC, but is from ST Microelectronics.