Patchwork [1/1] i2c-imx: allow autoloading on according to dt ids

login
register
mail settings
Submitter Arnaud Patard (Rtp)
Date June 20, 2013, 9:07 p.m.
Message ID <20130620210716.729401533@rtp-net.org>
Download mbox | patch
Permalink /patch/253428/
State Accepted
Headers show

Comments

Arnaud Patard (Rtp) - June 20, 2013, 9:07 p.m.
Allow udev to autoload the module when booting with device-tree

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>


--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Wolfram Sang - June 25, 2013, 4:51 p.m.
On Thu, Jun 20, 2013 at 11:07:06PM +0200, Arnaud Patard wrote:
> Allow udev to autoload the module when booting with device-tree
> 
> Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>

Applied to for-next, thanks!

Patch

Index: linux/drivers/i2c/busses/i2c-imx.c
===================================================================
--- linux.orig/drivers/i2c/busses/i2c-imx.c	2013-04-29 02:36:01.000000000 +0200
+++ linux/drivers/i2c/busses/i2c-imx.c	2013-05-16 08:56:06.000000000 +0200
@@ -148,6 +148,7 @@  static const struct of_device_id i2c_imx
 	{ .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)
 {