From: Viresh Kumar <viresh.kumar-qxv4g6HH51o@public.gmane.org>
To: khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org,
ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org,
w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org,
armando.visconti-qxv4g6HH51o@public.gmane.org,
shiraz.hashim-qxv4g6HH51o@public.gmane.org,
vipin.kumar-qxv4g6HH51o@public.gmane.org,
rajeev-dlh.kumar-qxv4g6HH51o@public.gmane.org,
deepak.sikri-qxv4g6HH51o@public.gmane.org,
vipulkumar.samar-qxv4g6HH51o@public.gmane.org,
amit.virdi-qxv4g6HH51o@public.gmane.org,
viresh.kumar-qxv4g6HH51o@public.gmane.org,
pratyush.anand-qxv4g6HH51o@public.gmane.org,
bhupesh.sharma-qxv4g6HH51o@public.gmane.org,
viresh.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
bhavna.yadav-qxv4g6HH51o@public.gmane.org,
vincenzo.frascino-qxv4g6HH51o@public.gmane.org,
mirko.gardi-qxv4g6HH51o@public.gmane.org,
salvatore.dedominicis-qxv4g6HH51o@public.gmane.org
Subject: [PATCH Resend] i2c/designware: dw_i2c_init_driver as subsys initcall
Date: Wed, 29 Feb 2012 12:27:46 +0530 [thread overview]
Message-ID: <0a4676cdd7e81363eab4eb1520b0e74f50e6c5c4.1330498492.git.viresh.kumar@st.com> (raw)
From: Pratyush Anand <pratyush.anand-qxv4g6HH51o@public.gmane.org>
There are few drivers which are available on i2c bus but have been initialized
with subsys_initcall. Also as I2C is also a bus driver, it should be available
as early as possible.
Therefore i2c driver must s initialized with subsys initcall in this patch.
Signed-off-by: Pratyush Anand <pratyush.anand-qxv4g6HH51o@public.gmane.org>
Signed-off-by: Viresh Kumar <viresh.kumar-qxv4g6HH51o@public.gmane.org>
---
This patch was sent a long time back and was never pushed. Resending it again.
drivers/i2c/busses/i2c-designware-platdrv.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c
index 2237398..ac953c8 100644
--- a/drivers/i2c/busses/i2c-designware-platdrv.c
+++ b/drivers/i2c/busses/i2c-designware-platdrv.c
@@ -249,7 +249,7 @@ static int __init dw_i2c_init_driver(void)
{
return platform_driver_probe(&dw_i2c_driver, dw_i2c_probe);
}
-module_init(dw_i2c_init_driver);
+subsys_initcall(dw_i2c_init_driver);
static void __exit dw_i2c_exit_driver(void)
{
--
1.7.8.110.g4cb5d
next reply other threads:[~2012-02-29 6:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-29 6:57 Viresh Kumar [this message]
[not found] ` <0a4676cdd7e81363eab4eb1520b0e74f50e6c5c4.1330498492.git.viresh.kumar-qxv4g6HH51o@public.gmane.org>
2012-02-29 18:57 ` [PATCH Resend] i2c/designware: dw_i2c_init_driver as subsys initcall 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=0a4676cdd7e81363eab4eb1520b0e74f50e6c5c4.1330498492.git.viresh.kumar@st.com \
--to=viresh.kumar-qxv4g6hh51o@public.gmane.org \
--cc=amit.virdi-qxv4g6HH51o@public.gmane.org \
--cc=armando.visconti-qxv4g6HH51o@public.gmane.org \
--cc=baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org \
--cc=ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org \
--cc=bhavna.yadav-qxv4g6HH51o@public.gmane.org \
--cc=bhupesh.sharma-qxv4g6HH51o@public.gmane.org \
--cc=deepak.sikri-qxv4g6HH51o@public.gmane.org \
--cc=khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mirko.gardi-qxv4g6HH51o@public.gmane.org \
--cc=pratyush.anand-qxv4g6HH51o@public.gmane.org \
--cc=rajeev-dlh.kumar-qxv4g6HH51o@public.gmane.org \
--cc=salvatore.dedominicis-qxv4g6HH51o@public.gmane.org \
--cc=shiraz.hashim-qxv4g6HH51o@public.gmane.org \
--cc=vincenzo.frascino-qxv4g6HH51o@public.gmane.org \
--cc=vipin.kumar-qxv4g6HH51o@public.gmane.org \
--cc=vipulkumar.samar-qxv4g6HH51o@public.gmane.org \
--cc=viresh.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=w.sang-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).