mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2024-11-23 05:55:05 +00:00
473f47e2dd
Remove code with if (0) and #if 0 clauses
46 lines
1.2 KiB
C
46 lines
1.2 KiB
C
/******************************************************************************
|
|
*
|
|
* Copyright(c) 2016 - 2018 Realtek Corporation.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of version 2 of the GNU General Public License 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.
|
|
*
|
|
*****************************************************************************/
|
|
#include <linux/printk.h> /* pr_info(() */
|
|
#include <linux/delay.h> /* msleep() */
|
|
#include "platform_aml_s905_sdio.h" /* sdio_reinit() and etc */
|
|
|
|
|
|
/*
|
|
* Return:
|
|
* 0: power on successfully
|
|
* others: power on failed
|
|
*/
|
|
int platform_wifi_power_on(void)
|
|
{
|
|
int ret = 0;
|
|
|
|
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0))
|
|
ret = wifi_setup_dt();
|
|
if (ret) {
|
|
pr_err("%s: setup dt failed!!(%d)\n", __func__, ret);
|
|
return -1;
|
|
}
|
|
#endif /* kernel < 3.14.0 */
|
|
|
|
return ret;
|
|
}
|
|
|
|
void platform_wifi_power_off(void)
|
|
{
|
|
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0))
|
|
wifi_teardown_dt();
|
|
#endif /* kernel < 3.14.0 */
|
|
}
|