Skip to contentSkip to conversation

mtd: bcm47xxsflash: adjust names of bus-specific functions

PATCH Superseded Rafał Miłecki 2 participants 4 messages Dec 26, 2012 – Jan 25, 2013 Memory technology devices (MTD)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: bcm47xxsflash: adjust names of bus-specific functions

This is needed to add clean support for other buses (like SSB) in the future.

---
 drivers/mtd/devices/bcm47xxsflash.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
drivers/mtd/devices/bcm47xxsflash.c +5 -4
index 4714584..f293682 100644
@@ -40,7 +40,7 @@ static void bcm47xxsflash_fill_mtd(struct bcma_sflash *sflash,
 	mtd->writebufsize = mtd->writesize = 1;
 }
 
-static int bcm47xxsflash_probe(struct platform_device *pdev)
+static int bcm47xxsflash_bcma_probe(struct platform_device *pdev)
 {
 	struct bcma_sflash *sflash = dev_get_platdata(&pdev->dev);
 	int err;
@@ -66,7 +66,7 @@ out:
 	return err;
 }
 
-static int bcm47xxsflash_remove(struct platform_device *pdev)
+static int bcm47xxsflash_bcma_remove(struct platform_device *pdev)
 {
 	struct bcma_sflash *sflash = dev_get_platdata(&pdev->dev);
 
@@ -77,7 +77,7 @@ static int bcm47xxsflash_remove(struct platform_device *pdev)
 }
 
 static struct platform_driver bcma_sflash_driver = {
-	.remove = bcm47xxsflash_remove,
+	.remove = bcm47xxsflash_bcma_remove,
 	.driver = {
 		.name = "bcma_sflash",
 		.owner = THIS_MODULE,
@@ -88,7 +88,8 @@ static int __init bcm47xxsflash_init(void)
 {
 	int err;
 
-	err = platform_driver_probe(&bcma_sflash_driver, bcm47xxsflash_probe);
+	err = platform_driver_probe(&bcma_sflash_driver,
+				    bcm47xxsflash_bcma_probe);
 	if (err)
 		pr_err("Failed to register BCMA serial flash driver: %d\n",
 		       err);
Signature · 1 line
1.7.7
#1 lore raw
Quoted 4 lines · Rafał Miłecki

This is needed to add clean support for other buses (like SSB) in the future.

Cannot compile-test this patch because of the following build regression in 3.8-rc4:

In file included from arch/mips/pci/pci-bcm47xx.c:27:0:
include/linux/ssb/ssb.h:440:19: error: field 'gpio' has incomplete type In file included from include/linux/bcma/bcma.h:7:0,

                 from arch/mips/pci/pci-bcm47xx.c:28:

include/linux/bcma/bcma_driver_chipcommon.h:582:19: error: field 'gpio' has incomplete type make[2]: *** [arch/mips/pci/pci-bcm47xx.o] Error 1

Signature · 2 lines
Best Regards,
Artem Bityutskiy
#2 lore raw

2013/1/15 Artem Bityutskiy <[email protected]>:

Quoted 9 lines · Rafał Miłecki
Quoted 4 lines

This is needed to add clean support for other buses (like SSB) in the future.

Cannot compile-test this patch because of the following build regression in 3.8-rc4:

Quoted 6 lines

In file included from arch/mips/pci/pci-bcm47xx.c:27:0:
include/linux/ssb/ssb.h:440:19: error: field 'gpio' has incomplete type In file included from include/linux/bcma/bcma.h:7:0,

                 from arch/mips/pci/pci-bcm47xx.c:28:

include/linux/bcma/bcma_driver_chipcommon.h:582:19: error: field 'gpio' has incomplete type make[2]: *** [arch/mips/pci/pci-bcm47xx.o] Error 1

This was already explained by Hauke and I believe you applied proper patch to the maintaining tools.

Can you re-try to add this patch?

Signature · 1 line
Rafał
#3 lore raw

2013/1/18 Rafał Miłecki <[email protected]>:

Quoted 17 lines

2013/1/15 Artem Bityutskiy <[email protected]>:

Quoted 9 lines · Rafał Miłecki
Quoted 4 lines

This is needed to add clean support for other buses (like SSB) in the future.

Cannot compile-test this patch because of the following build regression in 3.8-rc4:

Quoted 6 lines

In file included from arch/mips/pci/pci-bcm47xx.c:27:0:
include/linux/ssb/ssb.h:440:19: error: field 'gpio' has incomplete type In file included from include/linux/bcma/bcma.h:7:0,

                 from arch/mips/pci/pci-bcm47xx.c:28:

include/linux/bcma/bcma_driver_chipcommon.h:582:19: error: field 'gpio' has incomplete type make[2]: *** [arch/mips/pci/pci-bcm47xx.o] Error 1

Quoted 4 lines

This was already explained by Hauke and I believe you applied proper patch to the maintaining tools.

Can you re-try to add this patch?

I can see it doesn't apply cleanly anymore. If you didn't resolve that yet, you can drop this patch and just apply patchset
[PATCH 0/6] mtd: bcm47xx: some fixes for the flash drivers that applies cleanly.

I can resend this patch rebased on a [PATCH 0/6] mtd: bcm47xx: some fixes for the flash drivers

Signature · 1 line
Rafał