Commit ba628267 authored by Tom 'spot' Callaway's avatar Tom 'spot' Callaway Committed by Keith M. Wesolowski

[SPARC64]: Fix sun_uflash MTD driver build.

parent 5d658059
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/mtd/mtd.h> #include <linux/mtd/mtd.h>
#include <linux/mtd/map.h> #include <linux/mtd/map.h>
......
...@@ -95,8 +95,8 @@ int uflash_devinit(struct linux_ebus_device* edev) ...@@ -95,8 +95,8 @@ int uflash_devinit(struct linux_ebus_device* edev)
if(0 != pdev->name && 0 < strlen(pdev->name)) { if(0 != pdev->name && 0 < strlen(pdev->name)) {
pdev->map.name = pdev->name; pdev->map.name = pdev->name;
} }
pdev->phys = edev->resource[0].start; pdev->map.phys = edev->resource[0].start;
pdev->virt = pdev->map.virt =
(unsigned long)ioremap_nocache(edev->resource[0].start, pdev->map.size); (unsigned long)ioremap_nocache(edev->resource[0].start, pdev->map.size);
if(0 == pdev->map.virt) { if(0 == pdev->map.virt) {
printk("%s: failed to map device\n", __FUNCTION__); printk("%s: failed to map device\n", __FUNCTION__);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment