浏览代码

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>
Arnaud Patard \(Rtp\) 12 年之前
父节点
当前提交
2f641a8bdb
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/i2c/busses/i2c-imx.c

+ 1 - 0
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)
 {