Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a009e8d authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Mark Brown
Browse files

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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent e6f7563b
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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;