diff options
Diffstat (limited to 'arch/sparc/mm/iommu.c')
-rw-r--r-- | arch/sparc/mm/iommu.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |