summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/spi.c
diff options
context:
space:
mode:
authorLuciano Coelho <coelho@ti.com>2011-10-07 15:54:15 +0300
committerLuciano Coelho <coelho@ti.com>2011-10-11 20:11:10 +0300
commitccb62000d5e92772b6d5c2acce2f56263886ed89 (patch)
tree50ed51f3c2d69d0fd14d770208cea87b628fd381 /drivers/net/wireless/wl12xx/spi.c
parent48309fd477ef867babb6819f67fe082c133a5fa9 (diff)
downloadop-kernel-dev-ccb62000d5e92772b6d5c2acce2f56263886ed89.zip
op-kernel-dev-ccb62000d5e92772b6d5c2acce2f56263886ed89.tar.gz
wl12xx: use the same plat dev name for both SPI and SDIO
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>
Diffstat (limited to 'drivers/net/wireless/wl12xx/spi.c')
-rw-r--r--drivers/net/wireless/wl12xx/spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/spi.c b/drivers/net/wireless/wl12xx/spi.c
index 976d3d5..9e6f7fa 100644
--- a/drivers/net/wireless/wl12xx/spi.c
+++ b/drivers/net/wireless/wl12xx/spi.c
@@ -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;
OpenPOWER on IntegriCloud