summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/spi.c b/commands/spi.c
index 55a0e25..d35aa1c 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",