]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/sparc/include/asm/fb.h
of: Always use 'struct device.of_node' to get device node pointer.
[net-next-2.6.git] / arch / sparc / include / asm / fb.h
index b83e447296553d08b9fd04541e70c024dc6276a2..e834880be2040944783d7b0e31be1158ed788d4c 100644 (file)
@@ -18,7 +18,7 @@ static inline int fb_is_primary_device(struct fb_info *info)
        struct device *dev = info->device;
        struct device_node *node;
 
-       node = dev->archdata.prom_node;
+       node = dev->of_node;
        if (node &&
            node == of_console_device)
                return 1;