brcm2708: add linux 4.1 support
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.1 / 0049-bcm2708-Allow-option-card-devices-to-be-configured-v.patch
1 From b904f76b1090667c9f4741a60da8e60cebc8a91c 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/121] 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,