| .. | .. |
|---|
| 55 | 55 | * |
|---|
| 56 | 56 | * MEMREMAP_WB - matches the default mapping for System RAM on |
|---|
| 57 | 57 | * the architecture. This is usually a read-allocate write-back cache. |
|---|
| 58 | | - * Morever, if MEMREMAP_WB is specified and the requested remap region is RAM |
|---|
| 58 | + * Moreover, if MEMREMAP_WB is specified and the requested remap region is RAM |
|---|
| 59 | 59 | * memremap() will bypass establishing a new mapping and instead return |
|---|
| 60 | 60 | * a pointer into the direct map. |
|---|
| 61 | 61 | * |
|---|
| .. | .. |
|---|
| 86 | 86 | /* Try all mapping types requested until one returns non-NULL */ |
|---|
| 87 | 87 | if (flags & MEMREMAP_WB) { |
|---|
| 88 | 88 | /* |
|---|
| 89 | | - * MEMREMAP_WB is special in that it can be satisifed |
|---|
| 89 | + * MEMREMAP_WB is special in that it can be satisfied |
|---|
| 90 | 90 | * from the direct map. Some archs depend on the |
|---|
| 91 | 91 | * capability of memremap() to autodetect cases where |
|---|
| 92 | 92 | * the requested range is potentially in System RAM. |
|---|
| .. | .. |
|---|
| 121 | 121 | |
|---|
| 122 | 122 | void memunmap(void *addr) |
|---|
| 123 | 123 | { |
|---|
| 124 | | - if (is_vmalloc_addr(addr)) |
|---|
| 124 | + if (is_ioremap_addr(addr)) |
|---|
| 125 | 125 | iounmap((void __iomem *) addr); |
|---|
| 126 | 126 | } |
|---|
| 127 | 127 | EXPORT_SYMBOL(memunmap); |
|---|