aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-10-05 07:12:55 -0400
committerLuciano Coelho <coelho@ti.com>2011-10-11 09:01:05 -0400
commitce2a217c8268906640ebf7291d7a06210a35dd2f (patch)
tree1b4960c09511ac85300a4d17148674a87624769d /drivers/net
parent0969d6793f4899a4c5f56443d50f272068b97142 (diff)
wl12xx: add platform driver to the core module
Nnow that we have a platform_device on both glue layers, add a platform_driver to the core driver. It's currently an empty platform_driver but more functionality will be added on later patches. Signed-off-by: Felipe Balbi <balbi@ti.com> [forward-ported, cleaned-up and rephrased commit message] [added platform_driver.driver initialization] Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/wl12xx/main.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c
index f29d18daaa82..3262e8a6c475 100644
--- a/drivers/net/wireless/wl12xx/main.c
+++ b/drivers/net/wireless/wl12xx/main.c
@@ -5200,6 +5200,45 @@ int wl1271_free_hw(struct wl1271 *wl)
5200} 5200}
5201EXPORT_SYMBOL_GPL(wl1271_free_hw); 5201EXPORT_SYMBOL_GPL(wl1271_free_hw);
5202 5202
5203static int __devinit wl12xx_probe(struct platform_device *pdev)
5204{
5205 return 0;
5206}
5207
5208static int __devexit wl12xx_remove(struct platform_device *pdev)
5209{
5210 return 0;
5211}
5212
5213static const struct platform_device_id wl12xx_id_table[] __devinitconst = {
5214 { "wl12xx-sdio", 0 },
5215 { "wl12xx-spi", 0 },
5216 { } /* Terminating Entry */
5217};
5218MODULE_DEVICE_TABLE(platform, wl12xx_id_table);
5219
5220static struct platform_driver wl12xx_driver = {
5221 .probe = wl12xx_probe,
5222 .remove = __devexit_p(wl12xx_remove),
5223 .id_table = wl12xx_id_table,
5224 .driver = {
5225 .name = "wl12xx",
5226 .owner = THIS_MODULE,
5227 }
5228};
5229
5230static int __init wl12xx_init(void)
5231{
5232 return platform_driver_register(&wl12xx_driver);
5233}
5234module_init(wl12xx_init);
5235
5236static void __exit wl12xx_exit(void)
5237{
5238 platform_driver_unregister(&wl12xx_driver);
5239}
5240module_exit(wl12xx_exit);
5241
5203u32 wl12xx_debug_level = DEBUG_NONE; 5242u32 wl12xx_debug_level = DEBUG_NONE;
5204EXPORT_SYMBOL_GPL(wl12xx_debug_level); 5243EXPORT_SYMBOL_GPL(wl12xx_debug_level);
5205module_param_named(debug_level, wl12xx_debug_level, uint, S_IRUSR | S_IWUSR); 5244module_param_named(debug_level, wl12xx_debug_level, uint, S_IRUSR | S_IWUSR);