diff options
author | John Crispin <blogic@openwrt.org> | 2016-02-25 10:14:05 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2016-02-25 10:14:05 +0000 |
commit | 19a174c9ff135ce7198f41d2226b92c646515d26 (patch) | |
tree | 68aa7d5a077cda7c29e257a9303631b48793b483 /target/linux/brcm2708/patches-4.1/0071-bcm2835-audio-Create-the-platform-device-if-the-DT-n.patch | |
parent | ddab8d8608f1f0676ca2155e0415cc59a142af02 (diff) | |
download | master-187ad058-19a174c9ff135ce7198f41d2226b92c646515d26.tar.gz master-187ad058-19a174c9ff135ce7198f41d2226b92c646515d26.tar.bz2 master-187ad058-19a174c9ff135ce7198f41d2226b92c646515d26.zip |
brcm2708: remove linux 4.1 support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48766 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm2708/patches-4.1/0071-bcm2835-audio-Create-the-platform-device-if-the-DT-n.patch')
-rw-r--r-- | target/linux/brcm2708/patches-4.1/0071-bcm2835-audio-Create-the-platform-device-if-the-DT-n.patch | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/target/linux/brcm2708/patches-4.1/0071-bcm2835-audio-Create-the-platform-device-if-the-DT-n.patch b/target/linux/brcm2708/patches-4.1/0071-bcm2835-audio-Create-the-platform-device-if-the-DT-n.patch deleted file mode 100644 index c804828d96..0000000000 --- a/target/linux/brcm2708/patches-4.1/0071-bcm2835-audio-Create-the-platform-device-if-the-DT-n.patch +++ /dev/null @@ -1,52 +0,0 @@ -From fbe18b3fca27d4cce0aa721c9fa09bb40dbdd873 Mon Sep 17 00:00:00 2001 -From: Phil Elwell <phil@raspberrypi.org> -Date: Wed, 27 May 2015 17:22:15 +0100 -Subject: [PATCH 071/222] bcm2835-audio: Create the platform device if the DT - node is disabled - -For backwards compatibility, allow the built-in ALSA driver to be enabled -either by loading the module from /etc/modules or by enabling the "/audio" -node in DT. ---- - arch/arm/mach-bcm2708/bcm2708.c | 10 ++++++++-- - arch/arm/mach-bcm2709/bcm2709.c | 10 ++++++++-- - 2 files changed, 16 insertions(+), 4 deletions(-) - ---- a/arch/arm/mach-bcm2708/bcm2708.c -+++ b/arch/arm/mach-bcm2708/bcm2708.c -@@ -898,8 +898,14 @@ void __init bcm2708_init(void) - #endif - bcm2708_init_led(); - bcm2708_init_uart1(); -- for (i = 0; i < ARRAY_SIZE(bcm2708_alsa_devices); i++) -- bcm_register_device_dt(&bcm2708_alsa_devices[i]); -+ -+ /* Only create the platform devices for the ALSA driver in the -+ absence of an enabled "audio" DT node */ -+ if (!use_dt || -+ !of_device_is_available(of_find_node_by_path("/audio"))) { -+ for (i = 0; i < ARRAY_SIZE(bcm2708_alsa_devices); i++) -+ bcm_register_device(&bcm2708_alsa_devices[i]); -+ } - - bcm_register_device_dt(&bcm2708_spi_device); - ---- a/arch/arm/mach-bcm2709/bcm2709.c -+++ b/arch/arm/mach-bcm2709/bcm2709.c -@@ -918,8 +918,14 @@ void __init bcm2709_init(void) - #endif - bcm2709_init_led(); - bcm2709_init_uart1(); -- for (i = 0; i < ARRAY_SIZE(bcm2708_alsa_devices); i++) -- bcm_register_device_dt(&bcm2708_alsa_devices[i]); -+ -+ /* Only create the platform devices for the ALSA driver in the -+ absence of an enabled "audio" DT node */ -+ if (!use_dt || -+ !of_device_is_available(of_find_node_by_path("/audio"))) { -+ for (i = 0; i < ARRAY_SIZE(bcm2708_alsa_devices); i++) -+ bcm_register_device(&bcm2708_alsa_devices[i]); -+ } - - bcm_register_device_dt(&bcm2708_spi_device); - |