.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2005 Sascha Hauer, Pengutronix |
---|
3 | 4 | * Copyright (C) 2007 Wolfgang Grandegger <wg@grandegger.com> |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify |
---|
6 | | - * it under the terms of the version 2 of the GNU General Public License |
---|
7 | | - * as published by the Free Software Foundation |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope that it will be useful, |
---|
10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | | - * GNU General Public License for more details. |
---|
13 | | - * |
---|
14 | | - * You should have received a copy of the GNU General Public License |
---|
15 | | - * along with this program; if not, see <http://www.gnu.org/licenses/>. |
---|
16 | 5 | */ |
---|
17 | 6 | |
---|
18 | 7 | #include <linux/kernel.h> |
---|
.. | .. |
---|
161 | 150 | priv->read_reg = sp_read_reg16; |
---|
162 | 151 | priv->write_reg = sp_write_reg16; |
---|
163 | 152 | break; |
---|
164 | | - case 1: /* fallthrough */ |
---|
| 153 | + case 1: |
---|
165 | 154 | default: |
---|
166 | 155 | priv->read_reg = sp_read_reg8; |
---|
167 | 156 | priv->write_reg = sp_write_reg8; |
---|
.. | .. |
---|
240 | 229 | resource_size(res_mem), DRV_NAME)) |
---|
241 | 230 | return -EBUSY; |
---|
242 | 231 | |
---|
243 | | - addr = devm_ioremap_nocache(&pdev->dev, res_mem->start, |
---|
| 232 | + addr = devm_ioremap(&pdev->dev, res_mem->start, |
---|
244 | 233 | resource_size(res_mem)); |
---|
245 | 234 | if (!addr) |
---|
246 | 235 | return -ENOMEM; |
---|