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
6 The target is being converted to pure OF. We can therefore drop all of the
7 platform data code from the driver.
9 Cc: linux-spi@vger.kernel.org
10 Acked-by: Mark Brown <broonie@kernel.org>
11 Signed-off-by: John Crispin <john@phrozen.org>
13 include/linux/platform_data/spi-ath79.h | 16 -------------------
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
18 --- a/include/linux/platform_data/spi-ath79.h
21 -/* SPDX-License-Identifier: GPL-2.0-only */
23 - * Platform data definition for Atheros AR71XX/AR724X/AR913X SPI controller
25 - * Copyright (C) 2008-2010 Gabor Juhos <juhosg@openwrt.org>
28 -#ifndef _ATH79_SPI_PLATFORM_H
29 -#define _ATH79_SPI_PLATFORM_H
31 -struct ath79_spi_platform_data {
33 - unsigned num_chipselect;
36 -#endif /* _ATH79_SPI_PLATFORM_H */
37 --- a/drivers/spi/spi-ath79.c
38 +++ b/drivers/spi/spi-ath79.c
40 #include <linux/bitops.h>
41 #include <linux/clk.h>
42 #include <linux/err.h>
43 -#include <linux/platform_data/spi-ath79.h>
45 #define DRV_NAME "ath79-spi"
47 @@ -138,7 +137,6 @@ static int ath79_spi_probe(struct platfo
49 struct spi_master *master;
51 - struct ath79_spi_platform_data *pdata;
55 @@ -152,15 +150,9 @@ static int ath79_spi_probe(struct platfo
56 master->dev.of_node = pdev->dev.of_node;
57 platform_set_drvdata(pdev, sp);
59 - pdata = dev_get_platdata(&pdev->dev);
61 master->use_gpio_descriptors = true;
62 master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 32);
63 master->flags = SPI_MASTER_GPIO_SS;
65 - master->bus_num = pdata->bus_num;
66 - master->num_chipselect = pdata->num_chipselect;
69 sp->bitbang.master = master;
70 sp->bitbang.chipselect = ath79_spi_chipselect;