]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/serial/pmac_zilog.c
of: Always use 'struct device.of_node' to get device node pointer.
[net-next-2.6.git] / drivers / serial / pmac_zilog.c
index 4eaa043ca2a8c40552eebb258b7d447ef6de2818..1e43bf59c44d6ad9b8845aa8e1bffe2c01859f7c 100644 (file)
@@ -1609,7 +1609,7 @@ static int pmz_attach(struct macio_dev *mdev, const struct of_device_id *match)
        /* Iterate the pmz_ports array to find a matching entry
         */
        for (i = 0; i < MAX_ZS_PORTS; i++)
-               if (pmz_ports[i].node == mdev->ofdev.node) {
+               if (pmz_ports[i].node == mdev->ofdev.dev.of_node) {
                        struct uart_pmac_port *uap = &pmz_ports[i];
 
                        uap->dev = mdev;