aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/dac/max5821.c
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis@debethencourt.com>2015-09-17 19:02:32 +0200
committerJonathan Cameron <jic23@kernel.org>2015-09-23 20:23:23 +0100
commite09f56f3f09638a0f0120be81352378ed1727431 (patch)
tree1c44970d9a073bc831e92b31d98f64b4f4a9979d /drivers/iio/dac/max5821.c
parentiio: mma8452: leave sysfs namings to the iio core (diff)
downloadlinux-dev-e09f56f3f09638a0f0120be81352378ed1727431.tar.xz
linux-dev-e09f56f3f09638a0f0120be81352378ed1727431.zip
iio: dac: max5821: Fix module autoload for OF platform driver
This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work. Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/dac/max5821.c')
-rw-r--r--drivers/iio/dac/max5821.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/dac/max5821.c b/drivers/iio/dac/max5821.c
index 28b8748ea824..86e9e112f554 100644
--- a/drivers/iio/dac/max5821.c
+++ b/drivers/iio/dac/max5821.c
@@ -387,6 +387,7 @@ static const struct of_device_id max5821_of_match[] = {
{ .compatible = "maxim,max5821" },
{ }
};
+MODULE_DEVICE_TABLE(of, max5821_of_match);
static struct i2c_driver max5821_driver = {
.driver = {