| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * SuperH KEYSC Keypad Driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2008 Magnus Damm |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * 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. |
|---|
| 11 | 8 | */ |
|---|
| 12 | 9 | |
|---|
| 13 | 10 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 184 | 181 | } |
|---|
| 185 | 182 | |
|---|
| 186 | 183 | irq = platform_get_irq(pdev, 0); |
|---|
| 187 | | - if (irq < 0) { |
|---|
| 188 | | - dev_err(&pdev->dev, "failed to get irq\n"); |
|---|
| 184 | + if (irq < 0) |
|---|
| 189 | 185 | goto err0; |
|---|
| 190 | | - } |
|---|
| 191 | 186 | |
|---|
| 192 | 187 | priv = kzalloc(sizeof(*priv), GFP_KERNEL); |
|---|
| 193 | 188 | if (priv == NULL) { |
|---|
| .. | .. |
|---|
| 200 | 195 | memcpy(&priv->pdata, dev_get_platdata(&pdev->dev), sizeof(priv->pdata)); |
|---|
| 201 | 196 | pdata = &priv->pdata; |
|---|
| 202 | 197 | |
|---|
| 203 | | - priv->iomem_base = ioremap_nocache(res->start, resource_size(res)); |
|---|
| 198 | + priv->iomem_base = ioremap(res->start, resource_size(res)); |
|---|
| 204 | 199 | if (priv->iomem_base == NULL) { |
|---|
| 205 | 200 | dev_err(&pdev->dev, "failed to remap I/O memory\n"); |
|---|
| 206 | 201 | error = -ENXIO; |
|---|