aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux-5.4/linux-yocto-5.4.69-amdx86/0008-spi-amd-Drop-duplicate-driver-data-assignments.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux-5.4/linux-yocto-5.4.69-amdx86/0008-spi-amd-Drop-duplicate-driver-data-assignments.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux-5.4/linux-yocto-5.4.69-amdx86/0008-spi-amd-Drop-duplicate-driver-data-assignments.patch41
1 files changed, 0 insertions, 41 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux-5.4/linux-yocto-5.4.69-amdx86/0008-spi-amd-Drop-duplicate-driver-data-assignments.patch b/meta-amd-bsp/recipes-kernel/linux-5.4/linux-yocto-5.4.69-amdx86/0008-spi-amd-Drop-duplicate-driver-data-assignments.patch
deleted file mode 100644
index 70ec6382..00000000
--- a/meta-amd-bsp/recipes-kernel/linux-5.4/linux-yocto-5.4.69-amdx86/0008-spi-amd-Drop-duplicate-driver-data-assignments.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 9d509fee50d4b3fdf6f3a2f1a6ad2081073aebb5 Mon Sep 17 00:00:00 2001
-From: Lukas Wunner <lukas@wunner.de>
-Date: Mon, 4 May 2020 13:12:03 +0200
-Subject: [PATCH 08/21] spi: amd: Drop duplicate driver data assignments
-
-The AMD SPI driver calls platform_set_drvdata() on probe even though
-it's already been set by __spi_alloc_controller(). Likewise, it calls
-platform_set_drvdata() on remove even though it's going to be set by
-__device_release_driver(). Drop the duplicate assignments.
-
-Signed-off-by: Lukas Wunner <lukas@wunner.de>
-Link: https://lore.kernel.org/r/499f8ad4759c2ff0f586e0459fb9a293faecff6d.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 | 2 --
- 1 file changed, 2 deletions(-)
-
-diff --git a/drivers/spi/spi-amd.c b/drivers/spi/spi-amd.c
-index bafdb6249824..f8d008ea112d 100755
---- a/drivers/spi/spi-amd.c
-+++ b/drivers/spi/spi-amd.c
-@@ -288,7 +288,6 @@ static int amd_spi_probe(struct platform_device *pdev)
- dev_err(dev, "error %d registering SPI controller\n", err);
- goto err_free_master;
- }
-- platform_set_drvdata(pdev, amd_spi);
-
- return 0;
-
-@@ -304,7 +303,6 @@ static int amd_spi_remove(struct platform_device *pdev)
-
- spi_unregister_master(amd_spi->master);
- spi_master_put(amd_spi->master);
-- platform_set_drvdata(pdev, NULL);
-
- return 0;
- }
---
-2.17.1
-