[PATCH] mtd: bcm47xxsflash: adjust names of bus-specific functions
Rafał Miłecki
zajec5 at gmail.com
Wed Dec 26 07:54:26 EST 2012
This is needed to add clean support for other buses (like SSB) in the
future.
Signed-off-by: Rafał Miłecki <zajec5 at gmail.com>
---
drivers/mtd/devices/bcm47xxsflash.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/mtd/devices/bcm47xxsflash.c b/drivers/mtd/devices/bcm47xxsflash.c
index 4714584..f293682 100644
--- a/drivers/mtd/devices/bcm47xxsflash.c
+++ b/drivers/mtd/devices/bcm47xxsflash.c
@@ -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);
--
1.7.7
More information about the linux-mtd
mailing list