Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2ba99ff authored by Luciano Coelho's avatar Luciano Coelho
Browse files

wl12xx/wlcore: spin out the wl12xx probe from wlcore to a new wl12xx



Create a new small wl12xx module that only contains the probe
functions and depends entirely on wlcore otherwise.

Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
parent 7b3115f2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -7,5 +7,8 @@ menuconfig WL_TI

if WL_TI
source "drivers/net/wireless/ti/wl1251/Kconfig"
source "drivers/net/wireless/ti/wl12xx/Kconfig"

# keep last for automatic dependencies
source "drivers/net/wireless/ti/wlcore/Kconfig"
endif # WL_TI
+2 −1
Original line number Diff line number Diff line
obj-$(CONFIG_WL12XX)			+= wlcore/
obj-$(CONFIG_WLCORE)			+= wlcore/
obj-$(CONFIG_WL12XX)			+= wl12xx/
obj-$(CONFIG_WL12XX_PLATFORM_DATA)	+= wlcore/
obj-$(CONFIG_WL1251)			+= wl1251/
+8 −0
Original line number Diff line number Diff line
config WL12XX
       tristate "TI wl12xx support"
       select WLCORE
       ---help---
	  This module adds support for wireless adapters based on TI wl1271,
	  wl1273, wl1281 and wl1283 chipsets. This module does *not* include
	  support for wl1251.  For wl1251 support, use the separate homonymous
	   driver instead.
+3 −0
Original line number Diff line number Diff line
wl12xx-objs	= main.o

obj-$(CONFIG_WL12XX)		+= wl12xx.o
+56 −0
Original line number Diff line number Diff line
/*
 * This file is part of wl1271
 *
 * Copyright (C) 2008-2010 Nokia Corporation
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA
 *
 */

#include <linux/module.h>
#include <linux/platform_device.h>

#include "../wlcore/wlcore.h"

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

static struct platform_driver wl12xx_driver = {
	.probe		= wlcore_probe,
	.remove		= __devexit_p(wlcore_remove),
	.id_table	= wl12xx_id_table,
	.driver = {
		.name	= "wl12xx_driver",
		.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);

MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Luciano Coelho <coelho@ti.com>");
Loading