diff options
Diffstat (limited to 'arch/sparc/mm')
-rw-r--r-- | arch/sparc/mm/highmem.c | 4 | ||||
-rw-r--r-- | arch/sparc/mm/io-unit.c | 4 | ||||
-rw-r--r-- | arch/sparc/mm/iommu.c | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/arch/sparc/mm/highmem.c b/arch/sparc/mm/highmem.c index 7916feba6e4a..e139e9cbf5f7 100644 --- a/arch/sparc/mm/highmem.c +++ b/arch/sparc/mm/highmem.c | |||
@@ -65,7 +65,7 @@ void *kmap_atomic(struct page *page, enum km_type type) | |||
65 | } | 65 | } |
66 | EXPORT_SYMBOL(kmap_atomic); | 66 | EXPORT_SYMBOL(kmap_atomic); |
67 | 67 | ||
68 | void kunmap_atomic(void *kvaddr, enum km_type type) | 68 | void kunmap_atomic_notypecheck(void *kvaddr, enum km_type type) |
69 | { | 69 | { |
70 | #ifdef CONFIG_DEBUG_HIGHMEM | 70 | #ifdef CONFIG_DEBUG_HIGHMEM |
71 | unsigned long vaddr = (unsigned long) kvaddr & PAGE_MASK; | 71 | unsigned long vaddr = (unsigned long) kvaddr & PAGE_MASK; |
@@ -100,7 +100,7 @@ void kunmap_atomic(void *kvaddr, enum km_type type) | |||
100 | 100 | ||
101 | pagefault_enable(); | 101 | pagefault_enable(); |
102 | } | 102 | } |
103 | EXPORT_SYMBOL(kunmap_atomic); | 103 | EXPORT_SYMBOL(kunmap_atomic_notypecheck); |
104 | 104 | ||
105 | /* We may be fed a pagetable here by ptep_to_xxx and others. */ | 105 | /* We may be fed a pagetable here by ptep_to_xxx and others. */ |
106 | struct page *kmap_atomic_to_page(void *ptr) | 106 | struct page *kmap_atomic_to_page(void *ptr) |
diff --git a/arch/sparc/mm/io-unit.c b/arch/sparc/mm/io-unit.c index 005e758a4db7..fc58c3e917df 100644 --- a/arch/sparc/mm/io-unit.c +++ b/arch/sparc/mm/io-unit.c | |||
@@ -35,7 +35,7 @@ | |||
35 | #define IOPERM (IOUPTE_CACHE | IOUPTE_WRITE | IOUPTE_VALID) | 35 | #define IOPERM (IOUPTE_CACHE | IOUPTE_WRITE | IOUPTE_VALID) |
36 | #define MKIOPTE(phys) __iopte((((phys)>>4) & IOUPTE_PAGE) | IOPERM) | 36 | #define MKIOPTE(phys) __iopte((((phys)>>4) & IOUPTE_PAGE) | IOPERM) |
37 | 37 | ||
38 | static void __init iounit_iommu_init(struct of_device *op) | 38 | static void __init iounit_iommu_init(struct platform_device *op) |
39 | { | 39 | { |
40 | struct iounit_struct *iounit; | 40 | struct iounit_struct *iounit; |
41 | iopte_t *xpt, *xptend; | 41 | iopte_t *xpt, *xptend; |
@@ -74,7 +74,7 @@ static int __init iounit_init(void) | |||
74 | struct device_node *dp; | 74 | struct device_node *dp; |
75 | 75 | ||
76 | for_each_node_by_name(dp, "sbi") { | 76 | for_each_node_by_name(dp, "sbi") { |
77 | struct of_device *op = of_find_device_by_node(dp); | 77 | struct platform_device *op = of_find_device_by_node(dp); |
78 | 78 | ||
79 | iounit_iommu_init(op); | 79 | iounit_iommu_init(op); |
80 | of_propagate_archdata(op); | 80 | of_propagate_archdata(op); |
diff --git a/arch/sparc/mm/iommu.c b/arch/sparc/mm/iommu.c index b2e6e73888b5..07fc6a65d9b6 100644 --- a/arch/sparc/mm/iommu.c +++ b/arch/sparc/mm/iommu.c | |||
@@ -56,14 +56,14 @@ static pgprot_t dvma_prot; /* Consistent mapping pte flags */ | |||
56 | #define IOPERM (IOPTE_CACHE | IOPTE_WRITE | IOPTE_VALID) | 56 | #define IOPERM (IOPTE_CACHE | IOPTE_WRITE | IOPTE_VALID) |
57 | #define MKIOPTE(pfn, perm) (((((pfn)<<8) & IOPTE_PAGE) | (perm)) & ~IOPTE_WAZ) | 57 | #define MKIOPTE(pfn, perm) (((((pfn)<<8) & IOPTE_PAGE) | (perm)) & ~IOPTE_WAZ) |
58 | 58 | ||
59 | static void __init sbus_iommu_init(struct of_device *op) | 59 | static void __init sbus_iommu_init(struct platform_device *op) |
60 | { | 60 | { |
61 | struct iommu_struct *iommu; | 61 | struct iommu_struct *iommu; |
62 | unsigned int impl, vers; | 62 | unsigned int impl, vers; |
63 | unsigned long *bitmap; | 63 | unsigned long *bitmap; |
64 | unsigned long tmp; | 64 | unsigned long tmp; |
65 | 65 | ||
66 | iommu = kmalloc(sizeof(struct iommu_struct), GFP_ATOMIC); | 66 | iommu = kmalloc(sizeof(struct iommu_struct), GFP_KERNEL); |
67 | if (!iommu) { | 67 | if (!iommu) { |
68 | prom_printf("Unable to allocate iommu structure\n"); | 68 | prom_printf("Unable to allocate iommu structure\n"); |
69 | prom_halt(); | 69 | prom_halt(); |
@@ -132,7 +132,7 @@ static int __init iommu_init(void) | |||
132 | struct device_node *dp; | 132 | struct device_node *dp; |
133 | 133 | ||
134 | for_each_node_by_name(dp, "iommu") { | 134 | for_each_node_by_name(dp, "iommu") { |
135 | struct of_device *op = of_find_device_by_node(dp); | 135 | struct platform_device *op = of_find_device_by_node(dp); |
136 | 136 | ||
137 | sbus_iommu_init(op); | 137 | sbus_iommu_init(op); |
138 | of_propagate_archdata(op); | 138 | of_propagate_archdata(op); |