.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2008-2014 STMicroelectronics Limited |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * Lee Jones <lee.jones@linaro.org> |
---|
7 | 8 | * |
---|
8 | 9 | * 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. |
---|
12 | 10 | */ |
---|
13 | 11 | |
---|
14 | 12 | #include <linux/clk.h> |
---|
.. | .. |
---|
300 | 298 | { |
---|
301 | 299 | struct device_node *np = pdev->dev.of_node; |
---|
302 | 300 | struct spi_master *master; |
---|
303 | | - struct resource *res; |
---|
304 | 301 | struct spi_st *spi_st; |
---|
305 | 302 | int irq, ret = 0; |
---|
306 | 303 | u32 var; |
---|
.. | .. |
---|
333 | 330 | init_completion(&spi_st->done); |
---|
334 | 331 | |
---|
335 | 332 | /* 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); |
---|
338 | 334 | if (IS_ERR(spi_st->base)) { |
---|
339 | 335 | ret = PTR_ERR(spi_st->base); |
---|
340 | 336 | goto clk_disable; |
---|