blob: e6c350232f0ce4797dfc0ce7f55f5bdb3e9656fd [file] [log] [blame]
Luciano Coelhob2ba99f2011-11-20 23:32:10 +02001/*
2 * This file is part of wl1271
3 *
4 * Copyright (C) 2008-2010 Nokia Corporation
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * version 2 as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18 * 02110-1301 USA
19 *
20 */
21
22#include <linux/module.h>
23#include <linux/platform_device.h>
24
25#include "../wlcore/wlcore.h"
26
27static const struct platform_device_id wl12xx_id_table[] __devinitconst = {
28 { "wl12xx", 0 },
29 { } /* Terminating Entry */
30};
31MODULE_DEVICE_TABLE(platform, wl12xx_id_table);
32
33static struct platform_driver wl12xx_driver = {
34 .probe = wlcore_probe,
35 .remove = __devexit_p(wlcore_remove),
36 .id_table = wl12xx_id_table,
37 .driver = {
38 .name = "wl12xx_driver",
39 .owner = THIS_MODULE,
40 }
41};
42
43static int __init wl12xx_init(void)
44{
45 return platform_driver_register(&wl12xx_driver);
46}
47module_init(wl12xx_init);
48
49static void __exit wl12xx_exit(void)
50{
51 platform_driver_unregister(&wl12xx_driver);
52}
53module_exit(wl12xx_exit);
54
55MODULE_LICENSE("GPL v2");
56MODULE_AUTHOR("Luciano Coelho <coelho@ti.com>");