backports: fix bit_wait() and bit_wait_io()

In kernel version < 3.17 wait_on_bit() takes an action as a parameter,
which contains a schedule() or io_schedule() call in most cases. For
such calls wait_on_bit() was changed to not take an action but execute
schedule() action. This patch backports the new behavior to old kernel
versions.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: do not build da9211 driver for kernel < 3.17

This driver needs a new header file, which is not in the kernel < 3.17.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: backport argument change in alloc_netdev_mqs()

alloc_netdev_mqs() got a new parameter  in kernel 3.17, this patch
removed it from the calls if an older kernel is used. This is safe,
because older kernel versions do not need it.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: revert commit for mwifiex sido.

Revert this commit on kernel version < 3.7

    mwifiex: card reset: enable rescan of non-removable card

    mmc_rescan will scan for non-removable cards only once, hence the card
    will not be rediscovered.

    Signed-off-by: Andreas Fenkart <afenkart@gmail.com>
    Acked-by: Bing Zhao <bzhao@marvell.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: add some more dev_*_ratelimited() functions

Some drivers now also call the other dev_*_ratelimited() functions.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: make media driver USB_MSI2500 depend on kernel 3.5

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: do not use dma_buf_vmap() on kernel < 3.5

The dma function dma_buf_vmap() is not available on kernel < 3.5,
remove the call from the media subsystem code.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: add missing linux/mm.h to airspy

Without this patch I get the following error message when compiling
against kernel 3.2, all other kernel versions work:

3.2.60/drivers/media/usb/airspy/airspy.c: In function ‘airspy_queue_setup’:
3.2.60/drivers/media/usb/airspy/airspy.c:506:2: error: implicit declaration of function ‘PAGE_ALIGN’ [-Werror=implicit-function-declaration]
sizes[0] = PAGE_ALIGN(s->buffersize);

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: refresh on next-20140725

1   3.0.101             [  OK  ]
2   3.1.10              [  OK  ]
3   3.2.60              [  OK  ]
4   3.3.8               [  OK  ]
5   3.4.93              [  OK  ]
6   3.5.7               [  OK  ]
7   3.6.11              [  OK  ]
8   3.7.10              [  OK  ]
9   3.8.13              [  OK  ]
10  3.9.11              [  OK  ]
11  3.10.43             [  OK  ]
12  3.11.10             [  OK  ]
13  3.12.22             [  OK  ]
14  3.13.11             [  OK  ]
15  3.14.7              [  OK  ]
16  3.15.0              [  OK  ]
17  3.16-rc1            [  OK  ]

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>