mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-28 13:46:26 -04:00
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>
This commit is contained in:
committed by
Luciano Coelho
parent
0969d6793f
commit
ce2a217c82
@@ -5200,6 +5200,45 @@ int wl1271_free_hw(struct wl1271 *wl)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(wl1271_free_hw);
|
||||
|
||||
static int __devinit wl12xx_probe(struct platform_device *pdev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __devexit wl12xx_remove(struct platform_device *pdev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct platform_device_id wl12xx_id_table[] __devinitconst = {
|
||||
{ "wl12xx-sdio", 0 },
|
||||
{ "wl12xx-spi", 0 },
|
||||
{ } /* Terminating Entry */
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, wl12xx_id_table);
|
||||
|
||||
static struct platform_driver wl12xx_driver = {
|
||||
.probe = wl12xx_probe,
|
||||
.remove = __devexit_p(wl12xx_remove),
|
||||
.id_table = wl12xx_id_table,
|
||||
.driver = {
|
||||
.name = "wl12xx",
|
||||
.owner = THIS_MODULE,
|
||||
}
|
||||
};
|
||||
|
||||
static int __init wl12xx_init(void)
|
||||
{
|
||||
return platform_driver_register(&wl12xx_driver);
|
||||
}
|
||||
module_init(wl12xx_init);
|
||||
|
||||
static void __exit wl12xx_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&wl12xx_driver);
|
||||
}
|
||||
module_exit(wl12xx_exit);
|
||||
|
||||
u32 wl12xx_debug_level = DEBUG_NONE;
|
||||
EXPORT_SYMBOL_GPL(wl12xx_debug_level);
|
||||
module_param_named(debug_level, wl12xx_debug_level, uint, S_IRUSR | S_IWUSR);
|
||||
|
||||
Reference in New Issue
Block a user