diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux-5.4/linux-yocto-5.4.69-amdx86/0006-spi-amd-Fix-duplicate-iounmap-in-error-path.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux-5.4/linux-yocto-5.4.69-amdx86/0006-spi-amd-Fix-duplicate-iounmap-in-error-path.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux-5.4/linux-yocto-5.4.69-amdx86/0006-spi-amd-Fix-duplicate-iounmap-in-error-path.patch b/meta-amd-bsp/recipes-kernel/linux-5.4/linux-yocto-5.4.69-amdx86/0006-spi-amd-Fix-duplicate-iounmap-in-error-path.patch deleted file mode 100644 index a06c68be..00000000 --- a/meta-amd-bsp/recipes-kernel/linux-5.4/linux-yocto-5.4.69-amdx86/0006-spi-amd-Fix-duplicate-iounmap-in-error-path.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 2d846fc42efeab7c963e723e69ab03ed65d8d90f Mon Sep 17 00:00:00 2001 -From: Lukas Wunner <lukas@wunner.de> -Date: Mon, 4 May 2020 13:12:01 +0200 -Subject: [PATCH 06/21] spi: amd: Fix duplicate iounmap in error path - -The AMD SPI driver uses devm_ioremap_resource() to map its registers, so -they're automatically unmapped via device_release() when the last ref on -the SPI controller is dropped. The additional iounmap() in the ->probe() -error path is thus unnecessary. - -Signed-off-by: Lukas Wunner <lukas@wunner.de> -Link: https://lore.kernel.org/r/497cc38ae2beb7900ae05a1463eb83ff96e2770e.1588590210.git.lukas@wunner.de -Signed-off-by: Mark Brown <broonie@kernel.org> -Signed-off-by: Sudheesh Mavila <sudheesh.mavila@amd.com> ---- - drivers/spi/spi-amd.c | 4 +--- - 1 file changed, 1 insertion(+), 3 deletions(-) - -diff --git a/drivers/spi/spi-amd.c b/drivers/spi/spi-amd.c -index c5a16dd44fa3..fe088ef9752f 100755 ---- a/drivers/spi/spi-amd.c -+++ b/drivers/spi/spi-amd.c -@@ -286,14 +286,12 @@ static int amd_spi_probe(struct platform_device *pdev) - err = spi_register_master(master); - if (err) { - dev_err(dev, "error %d registering SPI controller\n", err); -- goto err_iounmap; -+ goto err_free_master; - } - platform_set_drvdata(pdev, amd_spi); - - return 0; - --err_iounmap: -- iounmap(amd_spi->io_remap_addr); - err_free_master: - spi_master_put(master); - --- -2.17.1 - |