hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/input/keyboard/sh_keysc.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * SuperH KEYSC Keypad Driver
34 *
45 * Copyright (C) 2008 Magnus Damm
56 *
67 * Based on gpio_keys.c, Copyright 2005 Phil Blundell
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/kernel.h>
....@@ -184,10 +181,8 @@
184181 }
185182
186183 irq = platform_get_irq(pdev, 0);
187
- if (irq < 0) {
188
- dev_err(&pdev->dev, "failed to get irq\n");
184
+ if (irq < 0)
189185 goto err0;
190
- }
191186
192187 priv = kzalloc(sizeof(*priv), GFP_KERNEL);
193188 if (priv == NULL) {
....@@ -200,7 +195,7 @@
200195 memcpy(&priv->pdata, dev_get_platdata(&pdev->dev), sizeof(priv->pdata));
201196 pdata = &priv->pdata;
202197
203
- priv->iomem_base = ioremap_nocache(res->start, resource_size(res));
198
+ priv->iomem_base = ioremap(res->start, resource_size(res));
204199 if (priv->iomem_base == NULL) {
205200 dev_err(&pdev->dev, "failed to remap I/O memory\n");
206201 error = -ENXIO;