linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arnaud Patard (Rtp) <arnaud.patard-dQbF7i+pzddAfugRpC6u6w@public.gmane.org>
To: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Sascha Hauer <s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
Subject: [patch 1/1] i2c-imx: allow autoloading on according to dt ids
Date: Thu, 20 Jun 2013 23:07:06 +0200	[thread overview]
Message-ID: <20130620210716.729401533@rtp-net.org> (raw)

[-- Attachment #1: i2c-imx-add-module_device_table.patch --]
[-- Type: text/plain, Size: 686 bytes --]

Allow udev to autoload the module when booting with device-tree

Signed-off-by: Arnaud Patard <arnaud.patard-dQbF7i+pzddAfugRpC6u6w@public.gmane.org>
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)
 {

             reply	other threads:[~2013-06-20 21:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-20 21:07 Arnaud Patard [this message]
     [not found] ` <20130620210716.729401533-dQbF7i+pzddAfugRpC6u6w@public.gmane.org>
2013-06-25 16:51   ` [patch 1/1] i2c-imx: allow autoloading on according to dt ids Wolfram Sang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130620210716.729401533@rtp-net.org \
    --to=arnaud.patard-dqbf7i+pzddafugrpc6u6w@public.gmane.org \
    --cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).