summaryrefslogtreecommitdiff
path: root/target/linux/brcm2708/patches-4.1/0062-Add-Device-Tree-support-for-RPi-DAC.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2016-02-25 10:14:05 +0000
committerJohn Crispin <john@openwrt.org>2016-02-25 10:14:05 +0000
commit0834f9f07631a8857a96614e37cb21e1dc84ffb4 (patch)
treec62e777de69d8397ed7870991bc46d5648a20046 /target/linux/brcm2708/patches-4.1/0062-Add-Device-Tree-support-for-RPi-DAC.patch
parentb3dc9566a46efa67951ff6ae28e4397da9db92af (diff)
downloadmtk-20170518-0834f9f07631a8857a96614e37cb21e1dc84ffb4.zip
mtk-20170518-0834f9f07631a8857a96614e37cb21e1dc84ffb4.tar.gz
mtk-20170518-0834f9f07631a8857a96614e37cb21e1dc84ffb4.tar.bz2
brcm2708: remove linux 4.1 support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 48766
Diffstat (limited to 'target/linux/brcm2708/patches-4.1/0062-Add-Device-Tree-support-for-RPi-DAC.patch')
-rw-r--r--target/linux/brcm2708/patches-4.1/0062-Add-Device-Tree-support-for-RPi-DAC.patch73
1 files changed, 0 insertions, 73 deletions
diff --git a/target/linux/brcm2708/patches-4.1/0062-Add-Device-Tree-support-for-RPi-DAC.patch b/target/linux/brcm2708/patches-4.1/0062-Add-Device-Tree-support-for-RPi-DAC.patch
deleted file mode 100644
index 67a2752..0000000
--- a/target/linux/brcm2708/patches-4.1/0062-Add-Device-Tree-support-for-RPi-DAC.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-From 53a42fe2c62f1a21329c737321f59e0ab97ac655 Mon Sep 17 00:00:00 2001
-From: Clive Messer <clive.m.messer@gmail.com>
-Date: Thu, 2 Apr 2015 12:22:55 +0100
-Subject: [PATCH 062/222] Add Device Tree support for RPi-DAC.
-
----
- sound/soc/bcm/rpi-dac.c | 21 +++++++++++++++++++++
- sound/soc/codecs/pcm1794a.c | 7 +++++++
- 2 files changed, 28 insertions(+)
-
---- a/sound/soc/bcm/rpi-dac.c
-+++ b/sound/soc/bcm/rpi-dac.c
-@@ -69,6 +69,20 @@ static int snd_rpi_rpi_dac_probe(struct
- int ret = 0;
-
- snd_rpi_rpi_dac.dev = &pdev->dev;
-+
-+ if (pdev->dev.of_node) {
-+ struct device_node *i2s_node;
-+ struct snd_soc_dai_link *dai = &snd_rpi_rpi_dac_dai[0];
-+ i2s_node = of_parse_phandle(pdev->dev.of_node, "i2s-controller", 0);
-+
-+ if (i2s_node) {
-+ dai->cpu_dai_name = NULL;
-+ dai->cpu_of_node = i2s_node;
-+ dai->platform_name = NULL;
-+ dai->platform_of_node = i2s_node;
-+ }
-+ }
-+
- ret = snd_soc_register_card(&snd_rpi_rpi_dac);
- if (ret)
- dev_err(&pdev->dev, "snd_soc_register_card() failed: %d\n", ret);
-@@ -81,10 +95,17 @@ static int snd_rpi_rpi_dac_remove(struct
- return snd_soc_unregister_card(&snd_rpi_rpi_dac);
- }
-
-+static const struct of_device_id snd_rpi_rpi_dac_of_match[] = {
-+ { .compatible = "rpi,rpi-dac", },
-+ {},
-+};
-+MODULE_DEVICE_TABLE(of, snd_rpi_rpi_dac_of_match);
-+
- static struct platform_driver snd_rpi_rpi_dac_driver = {
- .driver = {
- .name = "snd-rpi-dac",
- .owner = THIS_MODULE,
-+ .of_match_table = snd_rpi_rpi_dac_of_match,
- },
- .probe = snd_rpi_rpi_dac_probe,
- .remove = snd_rpi_rpi_dac_remove,
---- a/sound/soc/codecs/pcm1794a.c
-+++ b/sound/soc/codecs/pcm1794a.c
-@@ -46,12 +46,19 @@ static int pcm1794a_remove(struct platfo
- return 0;
- }
-
-+static const struct of_device_id pcm1794a_of_match[] = {
-+ { .compatible = "ti,pcm1794a", },
-+ { }
-+};
-+MODULE_DEVICE_TABLE(of, pcm1794a_of_match);
-+
- static struct platform_driver pcm1794a_codec_driver = {
- .probe = pcm1794a_probe,
- .remove = pcm1794a_remove,
- .driver = {
- .name = "pcm1794a-codec",
- .owner = THIS_MODULE,
-+ .of_match_table = of_match_ptr(pcm1794a_of_match),
- },
- };
-