Skip to content

Commit

Permalink
wlcore/wl18xx/wl12xx: remove __dev* attributes
Browse files Browse the repository at this point in the history
CONFIG_HOTPLUG is going away as an option.  As result the __dev*
markings will be going away.

Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst,
and __devexit.

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Luciano Coelho <coelho@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Bill Pemberton authored and John W. Linville committed Dec 6, 2012
1 parent fd549f1 commit b74324d
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/ti/wl1251/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ static int wl1251_sdio_probe(struct sdio_func *func,
return ret;
}

static void __devexit wl1251_sdio_remove(struct sdio_func *func)
static void wl1251_sdio_remove(struct sdio_func *func)
{
struct wl1251 *wl = sdio_get_drvdata(func);
struct wl1251_sdio *wl_sdio = wl->if_priv;
Expand Down Expand Up @@ -347,7 +347,7 @@ static struct sdio_driver wl1251_sdio_driver = {
.name = "wl1251_sdio",
.id_table = wl1251_devices,
.probe = wl1251_sdio_probe,
.remove = __devexit_p(wl1251_sdio_remove),
.remove = wl1251_sdio_remove,
.drv.pm = &wl1251_sdio_pm_ops,
};

Expand Down
6 changes: 3 additions & 3 deletions drivers/net/wireless/ti/wl1251/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ static const struct wl1251_if_operations wl1251_spi_ops = {
.power = wl1251_spi_set_power,
};

static int __devinit wl1251_spi_probe(struct spi_device *spi)
static int wl1251_spi_probe(struct spi_device *spi)
{
struct wl12xx_platform_data *pdata;
struct ieee80211_hw *hw;
Expand Down Expand Up @@ -309,7 +309,7 @@ static int __devinit wl1251_spi_probe(struct spi_device *spi)
return ret;
}

static int __devexit wl1251_spi_remove(struct spi_device *spi)
static int wl1251_spi_remove(struct spi_device *spi)
{
struct wl1251 *wl = dev_get_drvdata(&spi->dev);

Expand All @@ -326,7 +326,7 @@ static struct spi_driver wl1251_spi_driver = {
},

.probe = wl1251_spi_probe,
.remove = __devexit_p(wl1251_spi_remove),
.remove = wl1251_spi_remove,
};

static int __init wl1251_spi_init(void)
Expand Down
6 changes: 3 additions & 3 deletions drivers/net/wireless/ti/wl12xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,7 @@ static int wl12xx_setup(struct wl1271 *wl)
return 0;
}

static int __devinit wl12xx_probe(struct platform_device *pdev)
static int wl12xx_probe(struct platform_device *pdev)
{
struct wl1271 *wl;
struct ieee80211_hw *hw;
Expand Down Expand Up @@ -1725,15 +1725,15 @@ static int __devinit wl12xx_probe(struct platform_device *pdev)
return ret;
}

static const struct platform_device_id wl12xx_id_table[] __devinitconst = {
static const struct platform_device_id wl12xx_id_table[] = {
{ "wl12xx", 0 },
{ } /* Terminating Entry */
};
MODULE_DEVICE_TABLE(platform, wl12xx_id_table);

static struct platform_driver wl12xx_driver = {
.probe = wl12xx_probe,
.remove = __devexit_p(wlcore_remove),
.remove = wlcore_remove,
.id_table = wl12xx_id_table,
.driver = {
.name = "wl12xx_driver",
Expand Down
6 changes: 3 additions & 3 deletions drivers/net/wireless/ti/wl18xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,7 @@ static int wl18xx_setup(struct wl1271 *wl)
return 0;
}

static int __devinit wl18xx_probe(struct platform_device *pdev)
static int wl18xx_probe(struct platform_device *pdev)
{
struct wl1271 *wl;
struct ieee80211_hw *hw;
Expand Down Expand Up @@ -1528,15 +1528,15 @@ static int __devinit wl18xx_probe(struct platform_device *pdev)
return ret;
}

static const struct platform_device_id wl18xx_id_table[] __devinitconst = {
static const struct platform_device_id wl18xx_id_table[] = {
{ "wl18xx", 0 },
{ } /* Terminating Entry */
};
MODULE_DEVICE_TABLE(platform, wl18xx_id_table);

static struct platform_driver wl18xx_driver = {
.probe = wl18xx_probe,
.remove = __devexit_p(wlcore_remove),
.remove = wlcore_remove,
.id_table = wl18xx_id_table,
.driver = {
.name = "wl18xx_driver",
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/wireless/ti/wlcore/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5660,7 +5660,7 @@ static void wlcore_nvs_cb(const struct firmware *fw, void *context)
complete_all(&wl->nvs_loading_complete);
}

int __devinit wlcore_probe(struct wl1271 *wl, struct platform_device *pdev)
int wlcore_probe(struct wl1271 *wl, struct platform_device *pdev)
{
int ret;

Expand All @@ -5683,7 +5683,7 @@ int __devinit wlcore_probe(struct wl1271 *wl, struct platform_device *pdev)
}
EXPORT_SYMBOL_GPL(wlcore_probe);

int __devexit wlcore_remove(struct platform_device *pdev)
int wlcore_remove(struct platform_device *pdev)
{
struct wl1271 *wl = platform_get_drvdata(pdev);

Expand Down
8 changes: 4 additions & 4 deletions drivers/net/wireless/ti/wlcore/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct wl12xx_sdio_glue {
struct platform_device *core;
};

static const struct sdio_device_id wl1271_devices[] __devinitconst = {
static const struct sdio_device_id wl1271_devices[] = {
{ SDIO_DEVICE(SDIO_VENDOR_ID_TI, SDIO_DEVICE_ID_TI_WL1271) },
{}
};
Expand Down Expand Up @@ -214,7 +214,7 @@ static struct wl1271_if_operations sdio_ops = {
.set_block_size = wl1271_sdio_set_block_size,
};

static int __devinit wl1271_probe(struct sdio_func *func,
static int wl1271_probe(struct sdio_func *func,
const struct sdio_device_id *id)
{
struct wl12xx_platform_data *wlan_data;
Expand Down Expand Up @@ -319,7 +319,7 @@ static int __devinit wl1271_probe(struct sdio_func *func,
return ret;
}

static void __devexit wl1271_remove(struct sdio_func *func)
static void wl1271_remove(struct sdio_func *func)
{
struct wl12xx_sdio_glue *glue = sdio_get_drvdata(func);

Expand Down Expand Up @@ -384,7 +384,7 @@ static struct sdio_driver wl1271_sdio_driver = {
.name = "wl1271_sdio",
.id_table = wl1271_devices,
.probe = wl1271_probe,
.remove = __devexit_p(wl1271_remove),
.remove = wl1271_remove,
#ifdef CONFIG_PM
.drv = {
.pm = &wl1271_sdio_pm_ops,
Expand Down
6 changes: 3 additions & 3 deletions drivers/net/wireless/ti/wlcore/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ static struct wl1271_if_operations spi_ops = {
.set_block_size = NULL,
};

static int __devinit wl1271_probe(struct spi_device *spi)
static int wl1271_probe(struct spi_device *spi)
{
struct wl12xx_spi_glue *glue;
struct wl12xx_platform_data *pdata;
Expand Down Expand Up @@ -403,7 +403,7 @@ static int __devinit wl1271_probe(struct spi_device *spi)
return ret;
}

static int __devexit wl1271_remove(struct spi_device *spi)
static int wl1271_remove(struct spi_device *spi)
{
struct wl12xx_spi_glue *glue = spi_get_drvdata(spi);

Expand All @@ -422,7 +422,7 @@ static struct spi_driver wl1271_spi_driver = {
},

.probe = wl1271_probe,
.remove = __devexit_p(wl1271_remove),
.remove = wl1271_remove,
};

static int __init wl1271_init(void)
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/wireless/ti/wlcore/wlcore.h
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ struct wl1271 {
struct completion nvs_loading_complete;
};

int __devinit wlcore_probe(struct wl1271 *wl, struct platform_device *pdev);
int __devexit wlcore_remove(struct platform_device *pdev);
int wlcore_probe(struct wl1271 *wl, struct platform_device *pdev);
int wlcore_remove(struct platform_device *pdev);
struct ieee80211_hw *wlcore_alloc_hw(size_t priv_size, u32 aggr_buf_size);
int wlcore_free_hw(struct wl1271 *wl);
int wlcore_set_key(struct wl1271 *wl, enum set_key_cmd cmd,
Expand Down

0 comments on commit b74324d

Please sign in to comment.