ath79: add support for kernel 5.4
[openwrt/staging/blogic.git] / target / linux / ath79 / patches-5.4 / 0033-spi-ath79-drop-pdata-support.patch
1 From c4e197bbcecc7233aa9e553e7047fa50e4e1fe77 Mon Sep 17 00:00:00 2001
2 From: John Crispin <john@phrozen.org>
3 Date: Mon, 25 Jun 2018 15:52:34 +0200
4 Subject: [PATCH 33/33] spi: ath79: drop pdata support
5
6 The target is being converted to pure OF. We can therefore drop all of the
7 platform data code from the driver.
8
9 Cc: linux-spi@vger.kernel.org
10 Acked-by: Mark Brown <broonie@kernel.org>
11 Signed-off-by: John Crispin <john@phrozen.org>
12 ---
13 arch/mips/include/asm/mach-ath79/ath79_spi_platform.h | 19 -------------------
14 drivers/spi/spi-ath79.c | 8 --------
15 2 files changed, 27 deletions(-)
16 delete mode 100644 arch/mips/include/asm/mach-ath79/ath79_spi_platform.h
17
18 --- a/drivers/spi/spi-ath79.c
19 +++ b/drivers/spi/spi-ath79.c
20 @@ -138,7 +138,6 @@ static int ath79_spi_probe(struct platfo
21 {
22 struct spi_master *master;
23 struct ath79_spi *sp;
24 - struct ath79_spi_platform_data *pdata;
25 unsigned long rate;
26 int ret;
27
28 @@ -152,16 +151,10 @@ static int ath79_spi_probe(struct platfo
29 master->dev.of_node = pdev->dev.of_node;
30 platform_set_drvdata(pdev, sp);
31
32 - pdata = dev_get_platdata(&pdev->dev);
33 -
34 master->use_gpio_descriptors = true;
35 master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 32);
36 master->setup = spi_bitbang_setup;
37 master->cleanup = spi_bitbang_cleanup;
38 - if (pdata) {
39 - master->bus_num = pdata->bus_num;
40 - master->num_chipselect = pdata->num_chipselect;
41 - }
42
43 sp->bitbang.master = master;
44 sp->bitbang.chipselect = ath79_spi_chipselect;