]> git.hungrycats.org Git - linux/commitdiff
[SPARC64]: Fix sun_uflash MTD driver build.
authorTom 'spot' Callaway <tcallawa@redhat.com>
Mon, 5 Jan 2004 03:27:49 +0000 (19:27 -0800)
committerKeith M. Wesolowski <wesolows@foobazco.org>
Mon, 5 Jan 2004 03:27:49 +0000 (19:27 -0800)
drivers/mtd/chips/jedec_probe.c
drivers/mtd/maps/sun_uflash.c

index ce539ba17a2712f84ae2136c498da9762e841aa8..7e471fe1d980a1f5f8c66d338731297ba81cdc73 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/errno.h>
 #include <linux/slab.h>
 #include <linux/interrupt.h>
+#include <linux/init.h>
 
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/map.h>
index 828288642f7cc97632f1a8e33063a0edb569195b..b676e05542fd36d8a9146c36fba369eea835716d 100644 (file)
@@ -95,8 +95,8 @@ int uflash_devinit(struct linux_ebus_device* edev)
        if(0 != pdev->name && 0 < strlen(pdev->name)) {
                pdev->map.name = pdev->name;
        }
-       pdev->phys = edev->resource[0].start;
-       pdev->virt = 
+       pdev->map.phys = edev->resource[0].start;
+       pdev->map.virt = 
                (unsigned long)ioremap_nocache(edev->resource[0].start, pdev->map.size);
        if(0 == pdev->map.virt) {
                printk("%s: failed to map device\n", __FUNCTION__);