forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/can/sja1000/sja1000_platform.c
....@@ -1,18 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2005 Sascha Hauer, Pengutronix
34 * 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/>.
165 */
176
187 #include <linux/kernel.h>
....@@ -161,7 +150,7 @@
161150 priv->read_reg = sp_read_reg16;
162151 priv->write_reg = sp_write_reg16;
163152 break;
164
- case 1: /* fallthrough */
153
+ case 1:
165154 default:
166155 priv->read_reg = sp_read_reg8;
167156 priv->write_reg = sp_write_reg8;
....@@ -240,7 +229,7 @@
240229 resource_size(res_mem), DRV_NAME))
241230 return -EBUSY;
242231
243
- addr = devm_ioremap_nocache(&pdev->dev, res_mem->start,
232
+ addr = devm_ioremap(&pdev->dev, res_mem->start,
244233 resource_size(res_mem));
245234 if (!addr)
246235 return -ENOMEM;