diff options
-rw-r--r-- | drivers/spi/spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 6cc86060d22f..f699ea530b88 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c | |||
@@ -690,7 +690,7 @@ int spi_register_board_info(struct spi_board_info const *info, unsigned n) | |||
690 | int i; | 690 | int i; |
691 | 691 | ||
692 | if (!n) | 692 | if (!n) |
693 | return -EINVAL; | 693 | return 0; |
694 | 694 | ||
695 | bi = kcalloc(n, sizeof(*bi), GFP_KERNEL); | 695 | bi = kcalloc(n, sizeof(*bi), GFP_KERNEL); |
696 | if (!bi) | 696 | if (!bi) |