ath79: remove unused TP-Link partition parser
[openwrt/openwrt.git] / target / linux / ath79 / patches-5.4 / 0050-spi-ath79-remove-spi-master-setup-and-cleanup-assign.patch
1 From b142b1beb199f62d47370c98a3dd8e13f792e9c0 Mon Sep 17 00:00:00 2001
2 From: David Bauer <mail@david-bauer.net>
3 Date: Thu, 27 Feb 2020 23:03:20 +0100
4 Subject: [PATCH] spi: ath79: remove spi-master setup and cleanup assignment
5
6 This removes the assignment of setup and cleanup functions for the ath79
7 target. Assigning the setup-method will lead to 'setup_transfer' not
8 being assigned in spi_bitbang_init.
9
10 Also drop the redundant cleanup assignment, as this also happens in
11 spi_bitbang_init.
12
13 Signed-off-by: David Bauer <mail@david-bauer.net>
14 ---
15 drivers/spi/spi-ath79.c | 2 --
16 1 file changed, 2 deletions(-)
17
18 --- a/drivers/spi/spi-ath79.c
19 +++ b/drivers/spi/spi-ath79.c
20 @@ -152,8 +152,6 @@ static int ath79_spi_probe(struct platfo
21
22 master->use_gpio_descriptors = true;
23 master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 32);
24 - master->setup = spi_bitbang_setup;
25 - master->cleanup = spi_bitbang_cleanup;
26
27 sp->bitbang.master = master;
28 sp->bitbang.chipselect = ath79_spi_chipselect;