Skip to contentSkip to conversation

i2c: pxa2xx: remove ifdef CONFIG_OF

PATCH In review Sebastian Andrzej Siewior 3 participants 3 messages Apr 11, 2011 – May 4, 2011 2 messages not in the archive I2C subsystem host drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: pxa2xx: remove ifdef CONFIG_OF

Since commit c9e358d ("driver-core: remove conditionals around devicetree pointers") there is no need for CONFIG_OF around of_node and of_match_table. Grant removed this ifdefs from all driver which were in tree at the time, this one was merged later.

---
 drivers/i2c/busses/i2c-pxa.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/i2c/busses/i2c-pxa.c +0 -2
index f59224a..91c4c15 100644
@@ -1138,9 +1138,7 @@ static int i2c_pxa_probe(struct platform_device *dev)
 
 	i2c->adap.algo_data = i2c;
 	i2c->adap.dev.parent = &dev->dev;
-#ifdef CONFIG_OF
 	i2c->adap.dev.of_node = dev->dev.of_node;
-#endif
 
 	if (i2c_type == REGS_CE4100)
 		ret = i2c_add_adapter(&i2c->adap);
Signature · 1 line
1.7.4
#2 lore raw
In reply to a message not in the archive
Quoted 7 lines · Sebastian Andrzej Siewior

Since commit c9e358d ("driver-core: remove conditionals around devicetree pointers") there is no need for CONFIG_OF around of_node and of_match_table. Grant removed this ifdefs from all driver which were in tree at the time, this one was merged later.

Hey Ben,

Can you pick up this patch?

Thanks,
g.

Quoted 21 lines
---
 drivers/i2c/busses/i2c-pxa.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/i2c/busses/i2c-pxa.c +0 -2
index f59224a..91c4c15 100644
@@ -1138,9 +1138,7 @@ static int i2c_pxa_probe(struct platform_device *dev)
 
 	i2c->adap.algo_data = i2c;
 	i2c->adap.dev.parent = &dev->dev;
-#ifdef CONFIG_OF
 	i2c->adap.dev.of_node = dev->dev.of_node;
-#endif
 
 	if (i2c_type == REGS_CE4100)
 		ret = i2c_add_adapter(&i2c->adap);
Signature · 1 line
1.7.4
#4 lore raw
In reply to a message not in the archive
Quoted 6 lines · Grant Likely
Quoted 5 lines · Sebastian Andrzej Siewior

Since commit c9e358d ("driver-core: remove conditionals around devicetree pointers") there is no need for CONFIG_OF around of_node and of_match_table. Grant removed this ifdefs from all driver which were in tree at the time, this one was merged later.

Quoted 6 lines
Quoted 2 lines

Hey Ben,

Can you pick up this patch?

ok, will sort this out.

Signature · 3 lines
Ben Dooks, [email protected], http://www.fluff.org/ben/

Large Hadron Colada: A large Pina Colada that makes the universe disappear.