summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2016-05-17 12:00:09 -0400
committerMark Brown <broonie@kernel.org>2016-05-30 16:17:44 +0100
commitffd72505b08ff4538db6eca9a9a498fbb1bb3679 (patch)
tree371a300001406112908b18d3911c18be9b8243ad /sound/soc/codecs
parent3f039169ddc3edb2ecad03034843833d5b5a455f (diff)
downloadop-kernel-dev-ffd72505b08ff4538db6eca9a9a498fbb1bb3679.zip
op-kernel-dev-ffd72505b08ff4538db6eca9a9a498fbb1bb3679.tar.gz
ASoC: nau8825: Export I2C module alias information
The I2C driver has an i2c_device_id array but that information isn't exported to the module using the MODULE_DEVICE_TABLE() macro. So the module autoloading won't work if the I2C device is registered using OF or legacy board files due missing alias information in the module. The issue was found using Kieran Bingham's coccinelle semantic patch: https://lkml.org/lkml/2016/5/10/520 Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r--sound/soc/codecs/nau8825.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/nau8825.c b/sound/soc/codecs/nau8825.c
index 81fc97b..e988f89 100644
--- a/sound/soc/codecs/nau8825.c
+++ b/sound/soc/codecs/nau8825.c
@@ -1493,6 +1493,7 @@ static const struct i2c_device_id nau8825_i2c_ids[] = {
{ "nau8825", 0 },
{ }
};
+MODULE_DEVICE_TABLE(i2c, nau8825_i2c_ids);
#ifdef CONFIG_OF
static const struct of_device_id nau8825_of_ids[] = {
OpenPOWER on IntegriCloud