diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2013-10-08 14:49:59 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-09 07:00:42 -0400 |
commit | 6a009e8d886be476d7e6ea978c27c9517c449d3c (patch) | |
tree | 08cd65c7882846b48d710464f7fd92042c29c259 /drivers/spi/spi-efm32.c | |
parent | e6f7563b7354c2eb26d89b8622b3582a4c6510d8 (diff) |
spi: efm32: drop unused struct and fix size check
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>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-efm32.c')
-rw-r--r-- | drivers/spi/spi-efm32.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/spi/spi-efm32.c b/drivers/spi/spi-efm32.c index 5ce61e5f9770..d4d3cc534792 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) | |||
280 | return IRQ_HANDLED; | 280 | return IRQ_HANDLED; |
281 | } | 281 | } |
282 | 282 | ||
283 | static const struct efm32_spi_pdata efm32_spi_pdata_default = { | ||
284 | .location = 1, | ||
285 | }; | ||
286 | |||
287 | static u32 efm32_spi_get_configured_location(struct efm32_spi_ddata *ddata) | 283 | static u32 efm32_spi_get_configured_location(struct efm32_spi_ddata *ddata) |
288 | { | 284 | { |
289 | u32 reg = efm32_spi_read32(ddata, REG_ROUTE); | 285 | u32 reg = efm32_spi_read32(ddata, REG_ROUTE); |
@@ -387,7 +383,7 @@ static int efm32_spi_probe(struct platform_device *pdev) | |||
387 | goto err; | 383 | goto err; |
388 | } | 384 | } |
389 | 385 | ||
390 | if (resource_size(res) < 60) { | 386 | if (resource_size(res) < 0x60) { |
391 | ret = -EINVAL; | 387 | ret = -EINVAL; |
392 | dev_err(&pdev->dev, "memory resource too small\n"); | 388 | dev_err(&pdev->dev, "memory resource too small\n"); |
393 | goto err; | 389 | goto err; |