brcm2708: switch to linux 4.4 and update patches
[openwrt.git] / target / linux / brcm2708 / patches-4.1 / 0049-bcm2708-Allow-option-card-devices-to-be-configured-v.patch
1 From 6a63846a66f76dbac5e65a4d635170524976eb43 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Mon, 13 Apr 2015 19:14:18 +0100
4 Subject: [PATCH 049/222] bcm2708: Allow option card devices to be configured
5  via DT
6
7 If the kernel is built with Device Tree support, and if a DT blob
8 is provided for the kernel at boot time, then the platform devices
9 for option cards are not created. This avoids both the need to
10 blacklist unwanted devices, and the need to update the board
11 support code with each new device.
12 ---
13  sound/soc/bcm/bcm2835-i2s.c | 1 +
14  1 file changed, 1 insertion(+)
15
16 --- a/sound/soc/bcm/bcm2835-i2s.c
17 +++ b/sound/soc/bcm/bcm2835-i2s.c
18 @@ -861,6 +861,7 @@ static const struct of_device_id bcm2835
19         { .compatible = "brcm,bcm2835-i2s", },
20         {},
21  };
22 +MODULE_DEVICE_TABLE(of, bcm2835_i2s_of_match);
23  
24  static struct platform_driver bcm2835_i2s_driver = {
25         .probe          = bcm2835_i2s_probe,