Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
authorJohn W. Linville <linville@tuxdriver.com>
Mon, 28 Jan 2013 19:43:00 +0000 (14:43 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 28 Jan 2013 19:43:00 +0000 (14:43 -0500)
1  2 
drivers/bcma/bcma_private.h
drivers/bcma/driver_pci_host.c
drivers/bcma/main.c
drivers/net/wireless/ath/ath9k/htc_drv_init.c
drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c
drivers/net/wireless/mwifiex/cfg80211.c
drivers/nfc/pn544/i2c.c
include/linux/bcma/bcma_driver_pci.h
include/net/cfg80211.h
net/wireless/core.c
net/wireless/reg.c

Simple merge
Simple merge
Simple merge
index 2a9c8d93d2e8a302e8db87b91160e7fdd301a77d,7f96ca2c46bd13cfa1d8dafedb27abd9828b5740..8cf64c19f0229c97952ecd9f9fb689b29c6c3240
@@@ -469,32 -461,10 +461,10 @@@ static struct i2c_driver pn544_hci_i2c_
                  },
        .probe = pn544_hci_i2c_probe,
        .id_table = pn544_hci_i2c_id_table,
 -      .remove = __devexit_p(pn544_hci_i2c_remove),
 +      .remove = pn544_hci_i2c_remove,
  };
  
- static int __init pn544_hci_i2c_init(void)
- {
-       int r;
-       pr_debug(DRIVER_DESC ": %s\n", __func__);
-       r = i2c_add_driver(&pn544_hci_i2c_driver);
-       if (r) {
-               pr_err(PN544_HCI_I2C_DRIVER_NAME
-                      ": driver registration failed\n");
-               return r;
-       }
-       return 0;
- }
- static void __exit pn544_hci_i2c_exit(void)
- {
-       i2c_del_driver(&pn544_hci_i2c_driver);
- }
- module_init(pn544_hci_i2c_init);
- module_exit(pn544_hci_i2c_exit);
+ module_i2c_driver(pn544_hci_i2c_driver);
  
  MODULE_LICENSE("GPL");
  MODULE_DESCRIPTION(DRIVER_DESC);
Simple merge
Simple merge
Simple merge
index 82c4fc7c994cbe3a0dc89b4a6708f873fcc783d9,6ea626b30a2ac4dbad10901a3b2c370eb002f103..de02d633c212eb6ea516a7d87e05978a2a1b3ba9
@@@ -2365,17 -2249,32 +2249,25 @@@ int set_regdom(const struct ieee80211_r
        return r;
  }
  
 -#ifdef CONFIG_HOTPLUG
  int reg_device_uevent(struct device *dev, struct kobj_uevent_env *env)
  {
-       if (last_request && !last_request->processed) {
-               if (add_uevent_var(env, "COUNTRY=%c%c",
-                                  last_request->alpha2[0],
-                                  last_request->alpha2[1]))
-                       return -ENOMEM;
+       struct regulatory_request *lr;
+       u8 alpha2[2];
+       bool add = false;
+       rcu_read_lock();
+       lr = get_last_request();
+       if (lr && !lr->processed) {
+               memcpy(alpha2, lr->alpha2, 2);
+               add = true;
        }
+       rcu_read_unlock();
  
+       if (add)
+               return add_uevent_var(env, "COUNTRY=%c%c",
+                                     alpha2[0], alpha2[1]);
        return 0;
  }
 -#else
 -int reg_device_uevent(struct device *dev, struct kobj_uevent_env *env)
 -{
 -      return -ENODEV;
 -}
 -#endif /* CONFIG_HOTPLUG */
  
  void wiphy_regulatory_register(struct wiphy *wiphy)
  {