mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Laxman Dewangan <ldewangan@nvidia.com>
To: <broonie@opensource.wolfsonmicro.com>,
	<gregkh@linuxfoundation.org>, <sameo@linux.intel.com>
Cc: <swarren@nvidia.com>, <linux-kernel@vger.kernel.org>,
	Laxman Dewangan <ldewangan@nvidia.com>
Subject: [PATCH V2 5/5] mfd: tps65910: pass irq_domain when adding mfd sub devices
Date: Wed, 10 Oct 2012 22:49:05 +0530	[thread overview]
Message-ID: <1349889545-21517-6-git-send-email-ldewangan@nvidia.com> (raw)
In-Reply-To: <1349889545-21517-1-git-send-email-ldewangan@nvidia.com>

When adding the sub device "tps65910-rtc", is it passed the
IO resource IRQ for the interrupt number. This interrupt needs
to map in the device irq domain. Pass the irq domain of device
in mfd_add_devices() so that proper irq mapping can be done when
adding the sub device RTC.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
---
No change from V1.

 drivers/mfd/tps65910.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c
index d4d4eb5..4c4fc53 100644
--- a/drivers/mfd/tps65910.c
+++ b/drivers/mfd/tps65910.c
@@ -509,7 +509,8 @@ static __devinit int tps65910_i2c_probe(struct i2c_client *i2c,
 
 	ret = mfd_add_devices(tps65910->dev, -1,
 			      tps65910s, ARRAY_SIZE(tps65910s),
-			      NULL, 0, NULL);
+			      NULL, 0,
+			      regmap_irq_get_irq_domain(tps65910->irq_data));
 	if (ret < 0) {
 		dev_err(&i2c->dev, "mfd_add_devices failed: %d\n", ret);
 		return ret;
-- 
1.7.1.1


      parent reply	other threads:[~2012-10-10 17:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-10 17:19 [PATCH V2 0/5]mfd: tps65910: use regmap irq framework for interrupt Laxman Dewangan
2012-10-10 17:19 ` [PATCH V2 1/5] mfd: tps65910: Initialize mfd devices after all initialization done Laxman Dewangan
2012-10-10 17:19 ` [PATCH V2 2/5] mfd: tps65910: use regmap irq framework for interrupt support Laxman Dewangan
2012-10-10 17:19 ` [PATCH V2 3/5] mfd: tps65910: move interrupt implementation code to mfd file Laxman Dewangan
2012-10-10 17:19 ` [PATCH V2 4/5] regmap: add API to get irq_domain from regmap irq Laxman Dewangan
2012-10-11  7:38   ` Mark Brown
2012-10-15  0:56   ` Mark Brown
2012-10-15 11:41     ` Laxman Dewangan
2012-10-10 17:19 ` Laxman Dewangan [this message]

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=1349889545-21517-6-git-send-email-ldewangan@nvidia.com \
    --to=ldewangan@nvidia.com \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sameo@linux.intel.com \
    --cc=swarren@nvidia.com \
    /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

all inboxes | Powered by JetHome®