hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/input/keyboard/pxa930_rotary.c
....@@ -1,9 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * 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.
74 */
85
96 #include <linux/kernel.h>
....@@ -92,10 +89,8 @@
9289 int err;
9390
9491 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)
9793 return -ENXIO;
98
- }
9994
10095 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
10196 if (!res) {
....@@ -112,7 +107,7 @@
112107 if (!r)
113108 return -ENOMEM;
114109
115
- r->mmio_base = ioremap_nocache(res->start, resource_size(res));
110
+ r->mmio_base = ioremap(res->start, resource_size(res));
116111 if (r->mmio_base == NULL) {
117112 dev_err(&pdev->dev, "failed to remap IO memory\n");
118113 err = -ENXIO;