sparc: fix drivers/video/tcx.c warning
[linux-2.6.git] / drivers / video / tcx.c
index e5a9ddb3c8be4d9386a63aa758429074fc1ed176..fd94dfbab44bdbf65505bd93c841a08017f85981 100644 (file)
@@ -419,7 +419,7 @@ static int __devinit tcx_init_one(struct of_device *op)
                par->mmap_map[6].size = SBUS_MMAP_EMPTY;
        }
 
-       par->physbase = 0;
+       par->physbase = op->resource[0].start;
        par->which_io = op->resource[0].flags & IORESOURCE_BITS;
 
        for (i = 0; i < TCX_MMAP_ENTRIES; i++) {
@@ -473,7 +473,7 @@ static int __devinit tcx_init_one(struct of_device *op)
        printk("%s: TCX at %lx:%lx, %s\n",
               dp->full_name,
               par->which_io,
-              op->resource[0].start,
+              par->physbase,
               par->lowdepth ? "8-bit only" : "24-bit depth");
 
        return 0;