rtl8188eu: Remove dead code associated with CONFIG_PLATFORM_INTEL_BYT

This variable is never defined.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2022-01-14 21:12:34 -06:00
parent 53ed527078
commit a2c8a1deda
4 changed files with 0 additions and 141 deletions

View file

@ -1036,13 +1036,9 @@ static int wifi_probe(struct platform_device *pdev)
wifi_irqres->start, wifi_wake_gpio);
if (wifi_wake_gpio > 0) {
#ifdef CONFIG_PLATFORM_INTEL_BYT
wifi_configure_gpio();
#else /* CONFIG_PLATFORM_INTEL_BYT */
gpio_request(wifi_wake_gpio, "oob_irq");
gpio_direction_input(wifi_wake_gpio);
oob_irq = gpio_to_irq(wifi_wake_gpio);
#endif /* CONFIG_PLATFORM_INTEL_BYT */
printk("%s oob_irq:%d\n", __func__, oob_irq);
} else if (wifi_irqres) {
oob_irq = wifi_irqres->start;
@ -1217,34 +1213,7 @@ static void wifi_del_dev(void)
#endif /* defined(RTW_ENABLE_WIFI_CONTROL_FUNC) */
#ifdef CONFIG_GPIO_WAKEUP
#ifdef CONFIG_PLATFORM_INTEL_BYT
int wifi_configure_gpio(void)
{
if (gpio_request(oob_gpio, "oob_irq")) {
RTW_INFO("## %s Cannot request GPIO\n", __func__);
return -1;
}
gpio_export(oob_gpio, 0);
if (gpio_direction_input(oob_gpio)) {
RTW_INFO("## %s Cannot set GPIO direction input\n", __func__);
return -1;
}
oob_irq = gpio_to_irq(oob_gpio);
if (oob_irq < 0) {
RTW_INFO("## %s Cannot convert GPIO to IRQ\n", __func__);
return -1;
}
RTW_INFO("## %s OOB_IRQ=%d\n", __func__, oob_irq);
return 0;
}
#endif /* CONFIG_PLATFORM_INTEL_BYT */
void wifi_free_gpio(unsigned int gpio)
{
#ifdef CONFIG_PLATFORM_INTEL_BYT
if (gpio)
gpio_free(gpio);
#endif /* CONFIG_PLATFORM_INTEL_BYT */
}
#endif /* CONFIG_GPIO_WAKEUP */