diff options
Diffstat (limited to 'commands/spi.c')
-rw-r--r-- | commands/spi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/spi.c b/commands/spi.c index 55a0e255af..d35aa1cd81 100644 --- a/commands/spi.c +++ b/commands/spi.c @@ -67,6 +67,7 @@ static int do_spi(int argc, char *argv[]) printf("spi bus %d not found\n", bus); return -ENODEV; } + spi.master = spi.controller; if (spi.chip_select >= spi.controller->num_chipselect) { printf("spi chip select (%d) >= controller num chipselect (%d)\n", |