--- a/drivers/gpu/drm/i915/i915_gem_dmabuf.c
+++ b/drivers/gpu/drm/i915/i915_gem_dmabuf.c
-@@ -173,10 +173,14 @@ static const struct dma_buf_ops i915_dma
+@@ -215,10 +215,14 @@ static const struct dma_buf_ops i915_dma
.kmap_atomic = i915_gem_dmabuf_kmap_atomic,
.kunmap = i915_gem_dmabuf_kunmap,
.kunmap_atomic = i915_gem_dmabuf_kunmap_atomic,
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
-@@ -1301,10 +1301,17 @@ i915_gem_mmap_ioctl(struct drm_device *d
+@@ -1296,10 +1296,17 @@ i915_gem_mmap_ioctl(struct drm_device *d
drm_gem_object_unreference_unlocked(obj);
return -EINVAL;
}
DRM_IOCTL_DEF(DRM_IOCTL_PRIME_FD_TO_HANDLE, drm_prime_fd_to_handle_ioctl, DRM_AUTH|DRM_UNLOCKED),
+#endif
- DRM_IOCTL_DEF(DRM_IOCTL_MODE_GETPLANERESOURCES, drm_mode_getplane_res, DRM_MASTER|DRM_CONTROL_ALLOW|DRM_UNLOCKED),
+ DRM_IOCTL_DEF(DRM_IOCTL_MODE_GETPLANERESOURCES, drm_mode_getplane_res, DRM_CONTROL_ALLOW|DRM_UNLOCKED),
DRM_IOCTL_DEF(DRM_IOCTL_MODE_GETCRTC, drm_mode_getcrtc, DRM_CONTROL_ALLOW|DRM_UNLOCKED),
--- a/drivers/gpu/drm/drm_fops.c
+++ b/drivers/gpu/drm/drm_fops.c
#include "drmP.h"
#include "i915_drv.h"
#include <linux/dma-buf.h>
-@@ -249,3 +250,4 @@ fail_detach:
+@@ -302,3 +303,4 @@ fail_detach:
dma_buf_detach(dma_buf, attach);
return ERR_PTR(ret);
}
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
-@@ -3914,8 +3914,10 @@ i915_gem_init_hw(struct drm_device *dev)
+@@ -3962,8 +3962,10 @@ i915_gem_init_hw(struct drm_device *dev)
drm_i915_private_t *dev_priv = dev->dev_private;
int ret;
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
-@@ -1648,7 +1648,14 @@ i915_gem_object_truncate(struct drm_i915
+@@ -1643,7 +1643,14 @@ i915_gem_object_truncate(struct drm_i915
* backing pages, *now*.
*/
inode = obj->base.filp->f_path.dentry->d_inode;
dev->tx_queue_len = 0;
--- a/drivers/net/wireless/mwifiex/main.c
+++ b/drivers/net/wireless/mwifiex/main.c
-@@ -638,7 +638,7 @@ static const struct net_device_ops mwifi
+@@ -655,7 +655,7 @@ static const struct net_device_ops mwifi
void mwifiex_init_priv_params(struct mwifiex_private *priv,
struct net_device *dev)
{
return 0;
}
-@@ -8855,8 +8855,8 @@ static int nl80211_netlink_notify(struct
+@@ -8889,8 +8889,8 @@ static int nl80211_netlink_notify(struct
list_for_each_entry_rcu(rdev, &cfg80211_rdev_list, list) {
list_for_each_entry_rcu(wdev, &rdev->wdev_list, list)
error = input_register_handle(handle);
--- a/net/rfkill/core.c
+++ b/net/rfkill/core.c
-@@ -820,7 +820,7 @@ static int rfkill_resume(struct device *
+@@ -826,7 +826,7 @@ static int rfkill_resume(struct device *
}
static struct class rfkill_class = {
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
-@@ -2155,6 +2155,9 @@ struct wiphy_wowlan_support {
+@@ -2153,6 +2153,9 @@ struct wiphy_wowlan_support {
struct wiphy {
/* assign these fields before you register the wiphy */
/* Data structure for the WLAN parts (802.11 cores) of the b43 chip. */
--- a/drivers/net/wireless/ti/wlcore/main.c
+++ b/drivers/net/wireless/ti/wlcore/main.c
-@@ -5540,14 +5540,25 @@ int __devinit wlcore_probe(struct wl1271
-
- platform_set_drvdata(pdev, wl);
+@@ -5567,14 +5567,25 @@ static void wlcore_nvs_cb(const struct f
+ wl->set_power = pdata->set_power;
+ wl->if_ops = pdata->ops;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
+ irqflags = IRQF_TRIGGER_RISING;
+#endif
if (ret < 0) {
wl1271_error("request_irq() failed: %d", ret);
- goto out_free_hw;
-@@ -5621,7 +5632,11 @@ out_unreg:
+ goto out_free_nvs;
+@@ -5649,7 +5660,11 @@ out_unreg:
wl1271_unregister_hw(wl);
out_irq:
free_irq(wl->irq, wl);
+#endif
- out_free_hw:
- wlcore_free_hw(wl);
-@@ -5640,7 +5655,12 @@ int __devexit wlcore_remove(struct platf
+ out_free_nvs:
+ kfree(wl->nvs);
+@@ -5695,7 +5710,12 @@ int __devexit wlcore_remove(struct platf
disable_irq_wake(wl->irq);
}
wl1271_unregister_hw(wl);
return 0;
--- a/drivers/net/wireless/ti/wlcore/wlcore.h
+++ b/drivers/net/wireless/ti/wlcore/wlcore.h
-@@ -141,7 +141,9 @@ struct wl1271_stats {
- struct wl1271 {
+@@ -149,7 +149,9 @@ struct wl1271 {
+ bool initialized;
struct ieee80211_hw *hw;
bool mac80211_registered;
-
+ struct compat_threaded_irq irq_compat;
+#endif
struct device *dev;
+ struct platform_device *pdev;
- void *if_priv;
module_pci_driver(ath5k_pci_driver);
--- a/drivers/net/wireless/ath/ath9k/pci.c
+++ b/drivers/net/wireless/ath/ath9k/pci.c
-@@ -337,14 +337,10 @@ static int ath_pci_resume(struct device
+@@ -338,14 +338,10 @@ static int ath_pci_resume(struct device
return 0;
}
#define ATH9K_PM_OPS (&ath9k_pm_ops)
-@@ -362,7 +358,12 @@ static struct pci_driver ath_pci_driver
+@@ -363,7 +359,12 @@ static struct pci_driver ath_pci_driver
.id_table = ath_pci_id_table,
.probe = ath_pci_probe,
.remove = ath_pci_remove,
enum nl80211_iftype iftype, int num)
--- a/net/bluetooth/bnep/core.c
+++ b/net/bluetooth/bnep/core.c
-@@ -528,9 +528,11 @@ static struct device *bnep_get_device(st
+@@ -527,9 +527,11 @@ static struct device *bnep_get_device(st
return conn ? &conn->dev : NULL;
}
static int hidp_parse(struct hid_device *hid)
{
struct hidp_session *session = hid->driver_data;
-@@ -938,7 +1019,9 @@ static int hidp_setup_hid(struct hidp_se
+@@ -942,7 +1023,9 @@ static int hidp_setup_hid(struct hidp_se
hid->dev.parent = &session->conn->dev;
hid->ll_driver = &hidp_hid_driver;
hid->hid_output_raw_report = hidp_output_raw_report;
return 0;
-@@ -949,6 +1032,7 @@ fault:
+@@ -953,6 +1036,7 @@ fault:
return err;
}
int hidp_add_connection(struct hidp_connadd_req *req, struct socket *ctrl_sock, struct socket *intr_sock)
{
-@@ -964,6 +1048,39 @@ int hidp_add_connection(struct hidp_conn
+@@ -968,6 +1052,39 @@ int hidp_add_connection(struct hidp_conn
BT_DBG("rd_data %p rd_size %d", req->rd_data, req->rd_size);
down_write(&hidp_session_sem);
s = __hidp_get_session(&bt_sk(ctrl_sock->sk)->dst);
-@@ -1011,6 +1128,7 @@ int hidp_add_connection(struct hidp_conn
+@@ -1015,6 +1132,7 @@ int hidp_add_connection(struct hidp_conn
__hidp_link_session(session);
if (req->rd_size > 0) {
err = hidp_setup_hid(session, req);
if (err)
-@@ -1022,6 +1140,16 @@ int hidp_add_connection(struct hidp_conn
+@@ -1026,6 +1144,16 @@ int hidp_add_connection(struct hidp_conn
if (err < 0)
goto purge;
}
hidp_set_timer(session);
-@@ -1080,6 +1208,7 @@ unlink:
+@@ -1084,6 +1212,7 @@ unlink:
session->input = NULL;
}
if (session->hid) {
hid_destroy_device(session->hid);
session->hid = NULL;
-@@ -1093,10 +1222,15 @@ purge:
+@@ -1097,10 +1226,15 @@ purge:
skb_queue_purge(&session->ctrl_transmit);
skb_queue_purge(&session->intr_transmit);
},
--- a/drivers/bluetooth/btmrvl_sdio.c
+++ b/drivers/bluetooth/btmrvl_sdio.c
-@@ -1044,6 +1044,7 @@ static void btmrvl_sdio_remove(struct sd
+@@ -1052,6 +1052,7 @@ static void btmrvl_sdio_remove(struct sd
}
}
static int btmrvl_sdio_suspend(struct device *dev)
{
struct sdio_func *func = dev_to_sdio_func(dev);
-@@ -1139,6 +1140,7 @@ static const struct dev_pm_ops btmrvl_sd
+@@ -1147,6 +1148,7 @@ static const struct dev_pm_ops btmrvl_sd
.suspend = btmrvl_sdio_suspend,
.resume = btmrvl_sdio_resume,
};
static struct sdio_driver bt_mrvl_sdio = {
.name = "btmrvl_sdio",
-@@ -1147,7 +1149,9 @@ static struct sdio_driver bt_mrvl_sdio =
+@@ -1155,7 +1157,9 @@ static struct sdio_driver bt_mrvl_sdio =
.remove = btmrvl_sdio_remove,
.drv = {
.owner = THIS_MODULE,
--- a/drivers/net/wireless/ti/wl12xx/main.c
+++ b/drivers/net/wireless/ti/wl12xx/main.c
-@@ -1698,16 +1698,20 @@ static int __devinit wl12xx_probe(struct
- return wlcore_probe(wl, pdev);
+@@ -1725,16 +1725,20 @@ out:
+ return ret;
}
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30)
--- a/drivers/net/wireless/mwifiex/init.c
+++ b/drivers/net/wireless/mwifiex/init.c
-@@ -373,8 +373,10 @@ void mwifiex_set_trans_start(struct net_
+@@ -374,8 +374,10 @@ void mwifiex_set_trans_start(struct net_
{
int i;
module_usb_driver(carl9170_driver);
--- a/drivers/net/wireless/brcm80211/brcmfmac/usb.c
+++ b/drivers/net/wireless/brcm80211/brcmfmac/usb.c
-@@ -1589,7 +1589,9 @@ static struct usb_driver brcmf_usbdrvr =
+@@ -1563,7 +1563,9 @@ static struct usb_driver brcmf_usbdrvr =
.suspend = brcmf_usb_suspend,
.resume = brcmf_usb_resume,
.supports_autosuspend = 1,
module_usb_driver(rndis_wlan_driver);
--- a/drivers/net/wireless/rt2x00/rt2500usb.c
+++ b/drivers/net/wireless/rt2x00/rt2500usb.c
-@@ -1989,7 +1989,9 @@ static struct usb_driver rt2500usb_drive
+@@ -1988,7 +1988,9 @@ static struct usb_driver rt2500usb_drive
.disconnect = rt2x00usb_disconnect,
.suspend = rt2x00usb_suspend,
.resume = rt2x00usb_resume,
module_usb_driver(rt2500usb_driver);
--- a/drivers/net/wireless/rt2x00/rt2800usb.c
+++ b/drivers/net/wireless/rt2x00/rt2800usb.c
-@@ -1283,7 +1283,9 @@ static struct usb_driver rt2800usb_drive
+@@ -1282,7 +1282,9 @@ static struct usb_driver rt2800usb_drive
.disconnect = rt2x00usb_disconnect,
.suspend = rt2x00usb_suspend,
.resume = rt2x00usb_resume,
module_usb_driver(rt2800usb_driver);
--- a/drivers/net/wireless/rt2x00/rt73usb.c
+++ b/drivers/net/wireless/rt2x00/rt73usb.c
-@@ -2536,7 +2536,9 @@ static struct usb_driver rt73usb_driver
+@@ -2535,7 +2535,9 @@ static struct usb_driver rt73usb_driver
.disconnect = rt2x00usb_disconnect,
.suspend = rt2x00usb_suspend,
.resume = rt2x00usb_resume,