diff mbox series

[-next,1/3] spi: spi-fsl-dspi: Use devm_platform_get_and_ioremap_resource()

Message ID 20220924131854.964923-1-yangyingliang@huawei.com
State Accepted
Commit f96087a38cca6f3bb4c7cf582b949016aeb59d0e
Headers show
Series [-next,1/3] spi: spi-fsl-dspi: Use devm_platform_get_and_ioremap_resource() | expand

Commit Message

Yang Yingliang Sept. 24, 2022, 1:18 p.m. UTC
Use the devm_platform_get_and_ioremap_resource() helper instead of calling
platform_get_resource() and devm_ioremap_resource() separately.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 drivers/spi/spi-fsl-dspi.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Vladimir Oltean Sept. 26, 2022, 5:57 p.m. UTC | #1
On Sat, Sep 24, 2022 at 09:18:52PM +0800, Yang Yingliang wrote:
> Use the devm_platform_get_and_ioremap_resource() helper instead of calling
> platform_get_resource() and devm_ioremap_resource() separately.
> 
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---

For the series:

Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Mark Brown Sept. 27, 2022, 10:34 a.m. UTC | #2
On Sat, 24 Sep 2022 21:18:52 +0800, Yang Yingliang wrote:
> Use the devm_platform_get_and_ioremap_resource() helper instead of calling
> platform_get_resource() and devm_ioremap_resource() separately.
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[1/3] spi: spi-fsl-dspi: Use devm_platform_get_and_ioremap_resource()
      commit: f96087a38cca6f3bb4c7cf582b949016aeb59d0e
[2/3] spi: spi-fsl-lpspi: Use devm_platform_get_and_ioremap_resource()
      commit: c9e1bb724d884b12a4c0d1dc9f802946cf427a92
[3/3] spi: spi-fsl-qspi: Use devm_platform_ioremap_resource_byname()
      commit: fc13b5a25e18b0de5e04b6f5616c60d71d2610ee

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark
diff mbox series

Patch

diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c
index fd004c9db9dc..a33e547b7d39 100644
--- a/drivers/spi/spi-fsl-dspi.c
+++ b/drivers/spi/spi-fsl-dspi.c
@@ -1294,8 +1294,7 @@  static int dspi_probe(struct platform_device *pdev)
 	else
 		ctlr->bits_per_word_mask = SPI_BPW_RANGE_MASK(4, 16);
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(&pdev->dev, res);
+	base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(base)) {
 		ret = PTR_ERR(base);
 		goto out_ctlr_put;