Skip to contentSkip to conversation

NEW EMAC Fix RGMII build error: use of_device_is_compatible

PATCH In review Valentine Barshak 3 participants 3 messages Oct 12, 2007 – Oct 15, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NEW EMAC Fix RGMII build error: use of_device_is_compatible

Fix build RGMII error: use of_device_is_compatible() insteadof now deprecated device_is_compatible() function.

---
 drivers/net/ibm_newemac/rgmii.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/net/ibm_newemac/rgmii.c +1 -1
diff -pruN linux-2.6.orig/drivers/net/ibm_newemac/rgmii.c linux-2.6/drivers/net/ibm_newemac/rgmii.c
@@ -251,7 +251,7 @@ static int __devinit rgmii_probe(struct 
 	}
 
 	/* Check for RGMII type */
-	if (device_is_compatible(ofdev->node, "ibm,rgmii-axon"))
+	if (of_device_is_compatible(ofdev->node, "ibm,rgmii-axon"))
 		dev->type = RGMII_AXON;
 	else
 		dev->type = RGMII_STANDARD;
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Valentine Barshak

Fix build RGMII error: use of_device_is_compatible() insteadof now deprecated device_is_compatible() function.

Jeff, this should go into 2.6.24 please.

josh

Quoted 20 lines
---
 drivers/net/ibm_newemac/rgmii.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -pruN linux-2.6.orig/drivers/net/ibm_newemac/rgmii.c linux-2.6/drivers/net/ibm_newemac/rgmii.c

drivers/net/ibm_newemac/rgmii.c +1 -1
@@ -251,7 +251,7 @@ static int __devinit rgmii_probe(struct 
 	}
 
 	/* Check for RGMII type */
-	if (device_is_compatible(ofdev->node, "ibm,rgmii-axon"))
+	if (of_device_is_compatible(ofdev->node, "ibm,rgmii-axon"))
 		dev->type = RGMII_AXON;
 	else
 		dev->type = RGMII_STANDARD;

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Acked-by on v1 1/1
#2 lore raw
In reply to Valentine Barshak
Quoted 4 lines · Valentine Barshak

Fix build RGMII error: use of_device_is_compatible() insteadof now deprecated device_is_compatible() function.

Quoted 20 lines
---
 drivers/net/ibm_newemac/rgmii.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -pruN linux-2.6.orig/drivers/net/ibm_newemac/rgmii.c linux-2.6/drivers/net/ibm_newemac/rgmii.c

drivers/net/ibm_newemac/rgmii.c +1 -1
@@ -251,7 +251,7 @@ static int __devinit rgmii_probe(struct 
 	}
 
 	/* Check for RGMII type */
-	if (device_is_compatible(ofdev->node, "ibm,rgmii-axon"))
+	if (of_device_is_compatible(ofdev->node, "ibm,rgmii-axon"))
 		dev->type = RGMII_AXON;
 	else
 		dev->type = RGMII_STANDARD;

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev