]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/video/cg6.c
of: Always use 'struct device.of_node' to get device node pointer.
[net-next-2.6.git] / drivers / video / cg6.c
index 6d0fcb43696ec10bed2b44a020ee46e787b238e4..7f59b0fe5dc2b44a039e9c88b45c4a23ddd459e7 100644 (file)
@@ -740,7 +740,7 @@ static void cg6_unmap_regs(struct of_device *op, struct fb_info *info,
 static int __devinit cg6_probe(struct of_device *op,
                                const struct of_device_id *match)
 {
-       struct device_node *dp = op->node;
+       struct device_node *dp = op->dev.of_node;
        struct fb_info *info;
        struct cg6_par *par;
        int linebytes, err;