wl12xx: use the same plat dev name for both SPI and SDIO
authorLuciano Coelho <coelho@ti.com>
Fri, 7 Oct 2011 12:54:15 +0000 (15:54 +0300)
committerLuciano Coelho <coelho@ti.com>
Tue, 11 Oct 2011 17:11:10 +0000 (20:11 +0300)
There's no need to have the bus name included in the platform device
name that we create.  The core driver doesn't need to know about the
type of bus it uses.  Any differences between the buses that need to
be handled differently in the core, can be passed in the platform data
(as the pwr_in_suspend boolean does).

Use "wl12xx" for the device name in both bus drivers.  Rename the
platform driver name to "wl12xx_driver", just to differentiate from
the platform device names.

Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c
drivers/net/wireless/wl12xx/sdio.c
drivers/net/wireless/wl12xx/spi.c

index 44d52efedc742e623b9022a103a25e33b03da2e0..a2d16933ccb0e479636d5f5d0cc5d627630975b9 100644 (file)
@@ -5266,8 +5266,7 @@ static int __devexit wl12xx_remove(struct platform_device *pdev)
 }
 
 static const struct platform_device_id wl12xx_id_table[] __devinitconst = {
-       { "wl12xx-sdio", 0 },
-       { "wl12xx-spi", 0 },
+       { "wl12xx", 0 },
        {  } /* Terminating Entry */
 };
 MODULE_DEVICE_TABLE(platform, wl12xx_id_table);
@@ -5277,7 +5276,7 @@ static struct platform_driver wl12xx_driver = {
        .remove         = __devexit_p(wl12xx_remove),
        .id_table       = wl12xx_id_table,
        .driver = {
-               .name   = "wl12xx",
+               .name   = "wl12xx_driver",
                .owner  = THIS_MODULE,
        }
 };
index 57e72b4b8d22573ef01ed54cdec223d6f86b9fa0..ed97f9cee3f0e4d689d6cb6e44438da42abadcbf 100644 (file)
@@ -226,7 +226,7 @@ static int __devinit wl1271_probe(struct sdio_func *func,
        /* Tell PM core that we don't need the card to be powered now */
        pm_runtime_put_noidle(&func->dev);
 
-       glue->core = platform_device_alloc("wl12xx-sdio", -1);
+       glue->core = platform_device_alloc("wl12xx", -1);
        if (!glue->core) {
                dev_err(glue->dev, "can't allocate platform_device");
                ret = -ENOMEM;
index 976d3d556833050968f1368ca89b4b3563ce7b36..9e6f7fa0f9a32cb18d5a22ffdf4e50d07936dee1 100644 (file)
@@ -351,7 +351,7 @@ static int __devinit wl1271_probe(struct spi_device *spi)
                goto out_free_glue;
        }
 
-       glue->core = platform_device_alloc("wl12xx-spi", -1);
+       glue->core = platform_device_alloc("wl12xx", -1);
        if (!glue->core) {
                dev_err(glue->dev, "can't allocate platform_device\n");
                ret = -ENOMEM;
This page took 0.029755 seconds and 5 git commands to generate.