aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/misc/lattice-ecp3-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/lattice-ecp3-config.c b/drivers/misc/lattice-ecp3-config.c
index 155700bfd2b6..bb26f086bd8b 100644
--- a/drivers/misc/lattice-ecp3-config.c
+++ b/drivers/misc/lattice-ecp3-config.c
@@ -69,7 +69,7 @@ static const struct ecp3_dev ecp3_dev[] = {
69static void firmware_load(const struct firmware *fw, void *context) 69static void firmware_load(const struct firmware *fw, void *context)
70{ 70{
71 struct spi_device *spi = (struct spi_device *)context; 71 struct spi_device *spi = (struct spi_device *)context;
72 struct fpga_data *data = dev_get_drvdata(&spi->dev); 72 struct fpga_data *data = spi_get_drvdata(spi);
73 u8 *buffer; 73 u8 *buffer;
74 int ret; 74 int ret;
75 u8 txbuf[8]; 75 u8 txbuf[8];