diff options
Diffstat (limited to 'drivers/iio/frequency/adf4377.c')
| -rw-r--r-- | drivers/iio/frequency/adf4377.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iio/frequency/adf4377.c b/drivers/iio/frequency/adf4377.c index 7385be62fa6a..52266f83877a 100644 --- a/drivers/iio/frequency/adf4377.c +++ b/drivers/iio/frequency/adf4377.c @@ -1060,6 +1060,9 @@ static int adf4377_probe(struct spi_device *spi) st->regmap = regmap; st->spi = spi; st->chip_info = spi_get_device_match_data(spi); + if (!st->chip_info) + return -ENODATA; + mutex_init(&st->lock); ret = adf4377_properties_parse(st); |
