Exemplo n.º 1
0
static void omap4_tablet_wifi_init(void)
{
	omap4_tablet_wifi_mux_init();
	if (wl12xx_set_platform_data(&omap4_tablet_wlan_data))
		pr_err("Error setting wl12xx data\n");
	platform_device_register(&omap_vwlan_device);
}
Exemplo n.º 2
0
static void __init omap4_tablet_wifi_init(void)
{
	int status = 0;

	omap4_tablet_wifi_mux_init();

	status = gpio_request(GPIO_WIFI_PWEN, "wifi_pwen");
	if (unlikely(status < 0)) {
		pr_err("Error requesting WIFI power-en gpio (%d)\n", GPIO_WIFI_PWEN);
		return;
	}
	/* Needed for mmc2 initialization */
	gpio_direction_output(GPIO_WIFI_PWEN, 1);

	if (wl12xx_set_platform_data(&omap4_tablet_wlan_data))
		pr_err("Error setting wl12xx data\n");
	platform_device_register(&omap_vwlan_device);
}