aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-tle62x0.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi-tle62x0.c')
-rw-r--r--drivers/spi/spi-tle62x0.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-tle62x0.c b/drivers/spi/spi-tle62x0.c
index 2d4010d80824..daf5aa1c24c3 100644
--- a/drivers/spi/spi-tle62x0.c
+++ b/drivers/spi/spi-tle62x0.c
@@ -253,10 +253,8 @@ static int tle62x0_probe(struct spi_device *spi)
253 } 253 }
254 254
255 st = kzalloc(sizeof(struct tle62x0_state), GFP_KERNEL); 255 st = kzalloc(sizeof(struct tle62x0_state), GFP_KERNEL);
256 if (st == NULL) { 256 if (st == NULL)
257 dev_err(&spi->dev, "no memory for device state\n");
258 return -ENOMEM; 257 return -ENOMEM;
259 }
260 258
261 st->us = spi; 259 st->us = spi;
262 st->nr_gpio = pdata->gpio_count; 260 st->nr_gpio = pdata->gpio_count;