Thread (4 messages) 4 messages, 2 authors, 2012-02-27

Re: + drivers-mfd-twl-corec-wtf-isnt-this-fixed-yet.patch added to -mm tree

From: Randy Dunlap <hidden>
Date: 2012-02-27 17:46:22

On 02/24/2012 03:31 PM, Grant Likely wrote:
On Fri, Feb 24, 2012 at 02:27:28PM -0800, akpm@linux-foundation.org wrote:
quoted
The patch titled
     Subject: drivers/mfd/twl-core.c: wtf isn't this fixed yet??
has been added to the -mm tree.  Its filename is
     drivers-mfd-twl-corec-wtf-isnt-this-fixed-yet.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days
Hi Andrew,

I've posted patchs to fix this today, and I'll push it out to my tree
on the weekend so that Monday's linux-next will have this finally solved.

Did these patches get pushed??

linux-next of 20120227 still has build errors in twl-core.c:

drivers/mfd/twl-core.c:1237:2: error: implicit declaration of function 'irq_alloc_descs'
drivers/mfd/twl-core.c:1332:3: error: implicit declaration of function 'of_platform_populate'

on both i386 and x86_64.

g.
quoted
------------------------------------------------------
From: Andrew Morton <akpm@linux-foundation.org>
Subject: drivers/mfd/twl-core.c: wtf isn't this fixed yet??

drivers/mfd/twl-core.c: In function 'twl_probe':
drivers/mfd/twl-core.c:1237: error: implicit declaration of function 'irq_alloc_descs'
drivers/mfd/twl-core.c:1245: error: implicit declaration of function 'irq_domain_add_legacy'
drivers/mfd/twl-core.c:1246: error: 'irq_domain_simple_ops' undeclared (first use in this function)
drivers/mfd/twl-core.c:1246: error: (Each undeclared identifier is reported only once
drivers/mfd/twl-core.c:1246: error: for each function it appears in.)

Cc: Benoit Cousson <redacted>
Cc: Balaji T K <redacted>
Cc: Graeme Gregory <redacted>
Cc: Samuel Ortiz <redacted>
Cc: Rob Herring <redacted>
Cc: Grant Likely <redacted>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/mfd/twl-core.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff -puN drivers/mfd/twl-core.c~drivers-mfd-twl-corec-wtf-isnt-this-fixed-yet drivers/mfd/twl-core.c
--- a/drivers/mfd/twl-core.c~drivers-mfd-twl-corec-wtf-isnt-this-fixed-yet
+++ a/drivers/mfd/twl-core.c
@@ -1234,7 +1234,7 @@ twl_probe(struct i2c_client *client, con
 		return -EINVAL;
 	}
 
-	status = irq_alloc_descs(-1, pdata->irq_base, nr_irqs, 0);
+	status = 0;
 	if (IS_ERR_VALUE(status)) {
 		dev_err(&client->dev, "Fail to allocate IRQ descs\n");
 		return status;
@@ -1242,8 +1242,8 @@ twl_probe(struct i2c_client *client, con
 
 	pdata->irq_base = status;
 	pdata->irq_end = pdata->irq_base + nr_irqs;
-	irq_domain_add_legacy(node, nr_irqs, pdata->irq_base, 0,
-			      &irq_domain_simple_ops, NULL);
+//	irq_domain_add_legacy(node, nr_irqs, pdata->irq_base, 0,
+//			      &irq_domain_simple_ops, NULL);
 
 	if (i2c_check_functionality(client->adapter, I2C_FUNC_I2C) == 0) {
 		dev_dbg(&client->dev, "can't talk I2C?\n");
_
Subject: Subject: drivers/mfd/twl-core.c: wtf isn't this fixed yet??
-- 
~Randy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help