[PATCH 2/3] serial/ucc_uart: Use .dev.of_node instead of .node in struct of_device

Anton Vorontsov avorontsov at mvista.com
Mon May 3 03:17:59 EST 2010


Fixes following build failure:

drivers/serial/ucc_uart.c: In function 'ucc_uart_probe':
drivers/serial/ucc_uart.c:1200: error: 'struct platform_device' has no member named 'node'

Signed-off-by: Anton Vorontsov <avorontsov at mvista.com>
---
 drivers/serial/ucc_uart.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/serial/ucc_uart.c b/drivers/serial/ucc_uart.c
index fce07be..907b06f 100644
--- a/drivers/serial/ucc_uart.c
+++ b/drivers/serial/ucc_uart.c
@@ -1197,7 +1197,7 @@ static void uart_firmware_cont(const struct firmware *fw, void *context)
 static int ucc_uart_probe(struct of_device *ofdev,
 	const struct of_device_id *match)
 {
-	struct device_node *np = ofdev->node;
+	struct device_node *np = ofdev->dev.of_node;
 	const unsigned int *iprop;      /* Integer OF properties */
 	const char *sprop;      /* String OF properties */
 	struct uart_qe_port *qe_port = NULL;
-- 
1.7.0.5



More information about the devicetree-discuss mailing list