hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/spi/spi-st-ssc4.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2008-2014 STMicroelectronics Limited
34 *
....@@ -6,9 +7,6 @@
67 * Lee Jones <lee.jones@linaro.org>
78 *
89 * SPI master mode controller driver, used in STMicroelectronics devices.
9
- *
10
- * May be copied or modified under the terms of the GNU General Public
11
- * License Version 2.0 only. See linux/COPYING for more information.
1210 */
1311
1412 #include <linux/clk.h>
....@@ -300,7 +298,6 @@
300298 {
301299 struct device_node *np = pdev->dev.of_node;
302300 struct spi_master *master;
303
- struct resource *res;
304301 struct spi_st *spi_st;
305302 int irq, ret = 0;
306303 u32 var;
....@@ -333,8 +330,7 @@
333330 init_completion(&spi_st->done);
334331
335332 /* Get resources */
336
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
337
- spi_st->base = devm_ioremap_resource(&pdev->dev, res);
333
+ spi_st->base = devm_platform_ioremap_resource(pdev, 0);
338334 if (IS_ERR(spi_st->base)) {
339335 ret = PTR_ERR(spi_st->base);
340336 goto clk_disable;