linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] MFD: twl6040: Update Kconfig to avoid build breakage
@ 2012-06-08  6:35 Peter Ujfalusi
  2012-06-08  8:30 ` Samuel Ortiz
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Ujfalusi @ 2012-06-08  6:35 UTC (permalink / raw)
  To: Samuel Ortiz, Stephen Rothwell
  Cc: linux-kernel, linux-next, t-kristo, Randy Dunlap, peter.ujfalusi

twl6040 needs CONFIG_IRQ_DOMAIN to compile, without this we have:
drivers/mfd/twl6040-irq.c: In function 'twl6040_irq_init':
drivers/mfd/twl6040-irq.c:164:2: error: implicit declaration of function 'irq_domain_add_legacy'
drivers/mfd/twl6040-irq.c:165:11: error: 'irq_domain_simple_ops' undeclared (first use in this function)
drivers/mfd/twl6040-irq.c:165:11: note: each undeclared identifier is reported only once for each function it appears in

Reported by: Randy Dunlap <rdunlap@xenotime.net>

At the same time limit the twl6040 availability to ARM architecture since
it is unlikely that this chip is going to be used on other architectures.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 drivers/mfd/Kconfig |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index e129c82..b6af334 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -283,9 +283,10 @@ config TWL6030_PWM
 
 config TWL6040_CORE
 	bool "Support for TWL6040 audio codec"
-	depends on I2C=y && GENERIC_HARDIRQS
+	depends on I2C=y && GENERIC_HARDIRQS && ARM
 	select MFD_CORE
 	select REGMAP_I2C
+	select IRQ_DOMAIN
 	default n
 	help
 	  Say yes here if you want support for Texas Instruments TWL6040 audio
-- 
1.7.8.6

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] MFD: twl6040: Update Kconfig to avoid build breakage
  2012-06-08  6:35 [PATCH] MFD: twl6040: Update Kconfig to avoid build breakage Peter Ujfalusi
@ 2012-06-08  8:30 ` Samuel Ortiz
  2012-06-08  8:51   ` Peter Ujfalusi
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Ortiz @ 2012-06-08  8:30 UTC (permalink / raw)
  To: Peter Ujfalusi
  Cc: Stephen Rothwell, linux-kernel, linux-next, t-kristo, Randy Dunlap

Hi Peter,

On Fri, Jun 08, 2012 at 09:35:00AM +0300, Peter Ujfalusi wrote:
> twl6040 needs CONFIG_IRQ_DOMAIN to compile, without this we have:
> drivers/mfd/twl6040-irq.c: In function 'twl6040_irq_init':
> drivers/mfd/twl6040-irq.c:164:2: error: implicit declaration of function 'irq_domain_add_legacy'
> drivers/mfd/twl6040-irq.c:165:11: error: 'irq_domain_simple_ops' undeclared (first use in this function)
> drivers/mfd/twl6040-irq.c:165:11: note: each undeclared identifier is reported only once for each function it appears in
> 
> Reported by: Randy Dunlap <rdunlap@xenotime.net>
> 
> At the same time limit the twl6040 availability to ARM architecture since
> it is unlikely that this chip is going to be used on other architectures.
Right, but you're losing a lot of the linux-next build coverage.
With a dependency on ARM, we may have missed the above build error for
example. Would you mind removing that dependency ?

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] MFD: twl6040: Update Kconfig to avoid build breakage
  2012-06-08  8:30 ` Samuel Ortiz
@ 2012-06-08  8:51   ` Peter Ujfalusi
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Ujfalusi @ 2012-06-08  8:51 UTC (permalink / raw)
  To: Samuel Ortiz
  Cc: Stephen Rothwell, linux-kernel, linux-next, t-kristo, Randy Dunlap

Hi Samuel,

On 06/08/2012 11:30 AM, Samuel Ortiz wrote:

> Hi Peter,
> 
> On Fri, Jun 08, 2012 at 09:35:00AM +0300, Peter Ujfalusi wrote:
>> twl6040 needs CONFIG_IRQ_DOMAIN to compile, without this we have:
>> drivers/mfd/twl6040-irq.c: In function 'twl6040_irq_init':
>> drivers/mfd/twl6040-irq.c:164:2: error: implicit declaration of function 'irq_domain_add_legacy'
>> drivers/mfd/twl6040-irq.c:165:11: error: 'irq_domain_simple_ops' undeclared (first use in this function)
>> drivers/mfd/twl6040-irq.c:165:11: note: each undeclared identifier is reported only once for each function it appears in
>>
>> Reported by: Randy Dunlap <rdunlap@xenotime.net>
>>
>> At the same time limit the twl6040 availability to ARM architecture since
>> it is unlikely that this chip is going to be used on other architectures.
> Right, but you're losing a lot of the linux-next build coverage.
> With a dependency on ARM, we may have missed the above build error for
> example. Would you mind removing that dependency ?


Yes. True that we miss some coverage due to depending on ARM here. I did
missed this since when I build for OMAP the IRQ_DOMAIN is selected by OF,
which is selected by OMAP. Even if I use randconfig for ARM I would not
noticed this since AFAIK ARM selects IRQ_DOMAIN also...

I'll resend in a minute without the ARM dependency.

-- 
Péter

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-08  8:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-08  6:35 [PATCH] MFD: twl6040: Update Kconfig to avoid build breakage Peter Ujfalusi
2012-06-08  8:30 ` Samuel Ortiz
2012-06-08  8:51   ` Peter Ujfalusi

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).