bcm27xx: import latest patches from the RPi foundation
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0794-staging-bcm2835-audio-Add-missing-MODULE_ALIAS.patch
1 From 1f7c929fc7b010ceca45f8b91b22e71e697b6ec7 Mon Sep 17 00:00:00 2001
2 From: Maxim Mikityanskiy <maxtram95@gmail.com>
3 Date: Sat, 20 Jun 2020 15:40:00 +0300
4 Subject: [PATCH] staging: bcm2835-audio: Add missing MODULE_ALIAS
5
6 Commit 8353fe6f1e0f ("Revert "staging: bcm2835-audio: Drop DT
7 dependency"") reverts the upstream change and makes bcm2835-audio use
8 device tree again, however, it also removes the MODULE_ALIAS for the
9 platform device. This MODULE_ALIAS is needed, because VCHIQ registers
10 bcm2835-audio as a child platform device since commit 25c7597af20d
11 ("staging: vchiq_arm: Register a platform device for audio"), and this
12 mechanism is adopted also in the downstream kernel.
13
14 This commit puts back that MODULE_ALIAS to make bcm2835-audio
15 autoprobing work again. The rest of VCHIQ children have their
16 MODULE_ALIASes in place.
17
18 Fixes: 8353fe6f1e0f ("Revert "staging: bcm2835-audio: Drop DT dependency"")
19 Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com>
20 ---
21 drivers/staging/vc04_services/bcm2835-audio/bcm2835.c | 1 +
22 1 file changed, 1 insertion(+)
23
24 --- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c
25 +++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c
26 @@ -438,3 +438,4 @@ module_platform_driver(bcm2835_alsa_driv
27 MODULE_AUTHOR("Dom Cobley");
28 MODULE_DESCRIPTION("Alsa driver for BCM2835 chip");
29 MODULE_LICENSE("GPL");
30 +MODULE_ALIAS("platform:bcm2835_audio");