]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ASoC: max98357a: Fix build in !CONFIG_OF case
authorMark Brown <broonie@kernel.org>
Mon, 9 Feb 2015 06:36:47 +0000 (14:36 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 9 Feb 2015 06:36:47 +0000 (14:36 +0800)
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max98357a.c

index 98b915314d7a00390060411fb1b910aec6f46e9d..1806333ea29e5a6b49e2a0adb8c58257d34b7508 100644 (file)
@@ -120,6 +120,7 @@ static const struct of_device_id max98357a_device_id[] = {
        { .compatible = "maxim," DRV_NAME, },
        {}
 };
+MODULE_DEVICE_TABLE(of, max98357a_device_id);
 #endif
 
 static struct platform_driver max98357a_platform_driver = {
@@ -135,4 +136,3 @@ module_platform_driver(max98357a_platform_driver);
 MODULE_DESCRIPTION("Maxim MAX98357A Codec Driver");
 MODULE_LICENSE("GPL v2");
 MODULE_ALIAS("platform:" DRV_NAME);
-MODULE_DEVICE_TABLE(of, max98357a_device_id);