imgtec-ci20: genimage config/ u-boot env
[openadk.git] / target / linux / patches / 3.4.112 / lemote-rfkill.patch
bloba61488434e8dd5f884e02b4d7d0523e8a5da0b51
1 diff -Nur linux-3.3.orig/drivers/net/wireless/rtl818x/rtl8187/rfkill.c linux-3.3/drivers/net/wireless/rtl818x/rtl8187/rfkill.c
2 --- linux-3.3.orig/drivers/net/wireless/rtl818x/rtl8187/rfkill.c 2012-03-19 00:15:34.000000000 +0100
3 +++ linux-3.3/drivers/net/wireless/rtl818x/rtl8187/rfkill.c 2012-03-27 23:29:46.000000000 +0200
4 @@ -22,6 +22,9 @@
6 static bool rtl8187_is_radio_enabled(struct rtl8187_priv *priv)
8 +#ifdef CONFIG_LEMOTE_MACH2F
9 + return 1;
10 +#else
11 u8 gpio;
13 gpio = rtl818x_ioread8(priv, &priv->map->GPIO0);
14 @@ -29,6 +32,7 @@
15 gpio = rtl818x_ioread8(priv, &priv->map->GPIO1);
17 return gpio & priv->rfkill_mask;
18 +#endif
21 void rtl8187_rfkill_init(struct ieee80211_hw *hw)