ASoC: amd: vangogh: Make use of DRV_NAME
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Wed, 5 Jul 2023 21:47:58 +0000 (00:47 +0300)
committerMark Brown <broonie@kernel.org>
Sun, 9 Jul 2023 21:47:55 +0000 (22:47 +0100)
The "acp5x_mach" string is provided for both driver name and
MODULE_ALIAS. Since they need to match, ensure DRV_NAME macro is used in
both locations.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Link: https://lore.kernel.org/r/20230705214800.193244-2-cristian.ciocaltea@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/vangogh/acp5x-mach.c

index e5bcd1e..5e36179 100644 (file)
@@ -381,7 +381,7 @@ static int acp5x_probe(struct platform_device *pdev)
 
 static struct platform_driver acp5x_mach_driver = {
        .driver = {
-               .name = "acp5x_mach",
+               .name = DRV_NAME,
                .pm = &snd_soc_pm_ops,
        },
        .probe = acp5x_probe,