ASoC: nau8825: Export I2C module alias information
authorJavier Martinez Canillas <javier@osg.samsung.com>
Tue, 17 May 2016 16:00:09 +0000 (12:00 -0400)
committerMark Brown <broonie@kernel.org>
Mon, 30 May 2016 15:17:44 +0000 (16:17 +0100)
commitffd72505b08ff4538db6eca9a9a498fbb1bb3679
tree371a300001406112908b18d3911c18be9b8243ad
parent3f039169ddc3edb2ecad03034843833d5b5a455f
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>
sound/soc/codecs/nau8825.c