From 71f3179fc82a1884faeff99ad681c7ae27a6ab48 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Sat, 29 Feb 2020 00:54:41 +0100 Subject: spi: ath79: remove spi-master setup and cleanup assignment This removes the assignment of setup and cleanup functions for the ath79 target. Assigning the setup-method will lead to 'setup_transfer' not being assigned in spi_bitbang_init. Also drop the redundant cleanup assignment, as this also happens in spi_bitbang_init. Signed-off-by: David Bauer --- ...emove-spi-master-setup-and-cleanup-assign.patch | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 target/linux/ath79/patches-5.4/0050-spi-ath79-remove-spi-master-setup-and-cleanup-assign.patch (limited to 'target') diff --git a/target/linux/ath79/patches-5.4/0050-spi-ath79-remove-spi-master-setup-and-cleanup-assign.patch b/target/linux/ath79/patches-5.4/0050-spi-ath79-remove-spi-master-setup-and-cleanup-assign.patch new file mode 100644 index 0000000000..a57ac24f29 --- /dev/null +++ b/target/linux/ath79/patches-5.4/0050-spi-ath79-remove-spi-master-setup-and-cleanup-assign.patch @@ -0,0 +1,28 @@ +From b142b1beb199f62d47370c98a3dd8e13f792e9c0 Mon Sep 17 00:00:00 2001 +From: David Bauer +Date: Thu, 27 Feb 2020 23:03:20 +0100 +Subject: [PATCH] spi: ath79: remove spi-master setup and cleanup assignment + +This removes the assignment of setup and cleanup functions for the ath79 +target. Assigning the setup-method will lead to 'setup_transfer' not +being assigned in spi_bitbang_init. + +Also drop the redundant cleanup assignment, as this also happens in +spi_bitbang_init. + +Signed-off-by: David Bauer +--- + drivers/spi/spi-ath79.c | 2 -- + 1 file changed, 2 deletions(-) + +--- a/drivers/spi/spi-ath79.c ++++ b/drivers/spi/spi-ath79.c +@@ -152,8 +152,6 @@ static int ath79_spi_probe(struct platfo + + master->use_gpio_descriptors = true; + master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 32); +- master->setup = spi_bitbang_setup; +- master->cleanup = spi_bitbang_cleanup; + + sp->bitbang.master = master; + sp->bitbang.chipselect = ath79_spi_chipselect; -- cgit v1.2.3