diff options
author | Primoz Fiser <primoz.fiser@norik.com> | 2024-06-10 15:58:47 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-06-11 19:13:56 +0300 |
commit | 524d3f126362b6033e92cbe107ae2158d7fbff94 (patch) | |
tree | 501317b1c8c080420ddcdd345b8608a02a938890 | |
parent | b9dd212b14d27a53b63fc6621c452c0b3a01f61d (diff) | |
download | linux-524d3f126362b6033e92cbe107ae2158d7fbff94.tar.xz |
ASoC: ti: omap-hdmi: Fix too long driver name
Set driver name to "HDMI". This simplifies the code and gets rid of
the following error messages:
ASoC: driver name too long 'HDMI 58040000.encoder' -> 'HDMI_58040000_e'
Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/r/20240610125847.773394-1-primoz.fiser@norik.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/ti/omap-hdmi.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/soc/ti/omap-hdmi.c b/sound/soc/ti/omap-hdmi.c index 639bc83f4263..cf43ac19c4a6 100644 --- a/sound/soc/ti/omap-hdmi.c +++ b/sound/soc/ti/omap-hdmi.c @@ -354,11 +354,7 @@ static int omap_hdmi_audio_probe(struct platform_device *pdev) if (!card) return -ENOMEM; - card->name = devm_kasprintf(dev, GFP_KERNEL, - "HDMI %s", dev_name(ad->dssdev)); - if (!card->name) - return -ENOMEM; - + card->name = "HDMI"; card->owner = THIS_MODULE; card->dai_link = devm_kzalloc(dev, sizeof(*(card->dai_link)), GFP_KERNEL); |