From: Mark Brown Date: Mon, 9 Feb 2015 06:36:47 +0000 (+0800) Subject: ASoC: max98357a: Fix build in !CONFIG_OF case X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3efa130de40e7b2d7c7095683af9571bfef1d3a4;p=openwrt%2Fstaging%2Fblogic.git ASoC: max98357a: Fix build in !CONFIG_OF case Reported-by: Stephen Rothwell Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/max98357a.c b/sound/soc/codecs/max98357a.c index 98b915314d7a..1806333ea29e 100644 --- a/sound/soc/codecs/max98357a.c +++ b/sound/soc/codecs/max98357a.c @@ -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);