hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/input/mouse/pxa930_trkball.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * PXA930 track ball mouse driver
34 *
45 * Copyright (C) 2007 Marvell International Ltd.
56 * 2008-02-28: Yong Yao <yaoyong@marvell.com>
67 * initial version
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
118 */
129
1310 #include <linux/input.h>
....@@ -150,10 +147,8 @@
150147 int irq, error;
151148
152149 irq = platform_get_irq(pdev, 0);
153
- if (irq < 0) {
154
- dev_err(&pdev->dev, "failed to get trkball irq\n");
150
+ if (irq < 0)
155151 return -ENXIO;
156
- }
157152
158153 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
159154 if (!res) {
....@@ -172,7 +167,7 @@
172167 goto failed;
173168 }
174169
175
- trkball->mmio_base = ioremap_nocache(res->start, resource_size(res));
170
+ trkball->mmio_base = ioremap(res->start, resource_size(res));
176171 if (!trkball->mmio_base) {
177172 dev_err(&pdev->dev, "failed to ioremap registers\n");
178173 error = -ENXIO;