summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-imx.c
diff options
context:
space:
mode:
authorArnaud Patard \(Rtp\) <arnaud.patard@rtp-net.org>2013-06-20 23:07:06 +0200
committerWolfram Sang <wsa@the-dreams.de>2013-06-25 18:50:07 +0200
commit2f641a8bdb1b808b9bf1d0ca7d169d199aaf6ff4 (patch)
tree3c4e743be51ea3cabfc289b0d59fa19a99add697 /drivers/i2c/busses/i2c-imx.c
parenti2c: mv64xxx: Fix transfer error code (diff)
downloadlinux-2f641a8bdb1b808b9bf1d0ca7d169d199aaf6ff4.tar.xz
linux-2f641a8bdb1b808b9bf1d0ca7d169d199aaf6ff4.zip
i2c: imx: allow autoloading on dt ids
Allow udev to autoload the module when booting with device-tree Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-imx.c')
-rw-r--r--drivers/i2c/busses/i2c-imx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
index 6406aa960f2a..e24279725d36 100644
--- a/drivers/i2c/busses/i2c-imx.c
+++ b/drivers/i2c/busses/i2c-imx.c
@@ -147,6 +147,7 @@ static const struct of_device_id i2c_imx_dt_ids[] = {
{ .compatible = "fsl,imx21-i2c", .data = &imx_i2c_devtype[IMX21_I2C], },
{ /* sentinel */ }
};
+MODULE_DEVICE_TABLE(of, i2c_imx_dt_ids);
static inline int is_imx1_i2c(struct imx_i2c_struct *i2c_imx)
{