.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Driver for the enhanced rotary controller on pxa930 and pxa935 |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify |
---|
5 | | - * it under the terms of the GNU General Public License version 2 as |
---|
6 | | - * published by the Free Software Foundation. |
---|
7 | 4 | */ |
---|
8 | 5 | |
---|
9 | 6 | #include <linux/kernel.h> |
---|
.. | .. |
---|
92 | 89 | int err; |
---|
93 | 90 | |
---|
94 | 91 | irq = platform_get_irq(pdev, 0); |
---|
95 | | - if (irq < 0) { |
---|
96 | | - dev_err(&pdev->dev, "no irq for rotary controller\n"); |
---|
| 92 | + if (irq < 0) |
---|
97 | 93 | return -ENXIO; |
---|
98 | | - } |
---|
99 | 94 | |
---|
100 | 95 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
---|
101 | 96 | if (!res) { |
---|
.. | .. |
---|
112 | 107 | if (!r) |
---|
113 | 108 | return -ENOMEM; |
---|
114 | 109 | |
---|
115 | | - r->mmio_base = ioremap_nocache(res->start, resource_size(res)); |
---|
| 110 | + r->mmio_base = ioremap(res->start, resource_size(res)); |
---|
116 | 111 | if (r->mmio_base == NULL) { |
---|
117 | 112 | dev_err(&pdev->dev, "failed to remap IO memory\n"); |
---|
118 | 113 | err = -ENXIO; |
---|