summaryrefslogtreecommitdiffstats
path: root/patches/linux-3.12-rc4/0007-spi-efm32-drop-unused-struct-and-fix-size-check.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/linux-3.12-rc4/0007-spi-efm32-drop-unused-struct-and-fix-size-check.patch')
-rw-r--r--patches/linux-3.12-rc4/0007-spi-efm32-drop-unused-struct-and-fix-size-check.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/patches/linux-3.12-rc4/0007-spi-efm32-drop-unused-struct-and-fix-size-check.patch b/patches/linux-3.12-rc4/0007-spi-efm32-drop-unused-struct-and-fix-size-check.patch
new file mode 100644
index 0000000..7a0cc07
--- /dev/null
+++ b/patches/linux-3.12-rc4/0007-spi-efm32-drop-unused-struct-and-fix-size-check.patch
@@ -0,0 +1,40 @@
+From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de>
+Date: Tue, 8 Oct 2013 09:47:09 +0200
+Subject: [PATCH] spi: efm32: drop unused struct and fix size check
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+The variable efm32_spi_pdata_default origins from an earlier revision of
+the patch introducing the driver, its use was dropped because of review
+comments but I forgot to also drop the variable itself.
+
+Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
+---
+ drivers/spi/spi-efm32.c | 6 +-----
+ 1 file changed, 1 insertion(+), 5 deletions(-)
+
+diff --git a/drivers/spi/spi-efm32.c b/drivers/spi/spi-efm32.c
+index 7d84418..7b64693 100644
+--- a/drivers/spi/spi-efm32.c
++++ b/drivers/spi/spi-efm32.c
+@@ -280,10 +280,6 @@ static irqreturn_t efm32_spi_txirq(int irq, void *data)
+ return IRQ_HANDLED;
+ }
+
+-static const struct efm32_spi_pdata efm32_spi_pdata_default = {
+- .location = 1,
+-};
+-
+ static u32 efm32_spi_get_configured_location(struct efm32_spi_ddata *ddata)
+ {
+ u32 reg = efm32_spi_read32(ddata, REG_ROUTE);
+@@ -387,7 +383,7 @@ static int efm32_spi_probe(struct platform_device *pdev)
+ goto err;
+ }
+
+- if (resource_size(res) < 60) {
++ if (resource_size(res) < 0x60) {
+ ret = -EINVAL;
+ dev_err(&pdev->dev, "memory resource too small\n");
+ goto err;