summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-slave-system-control.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi-slave-system-control.c')
-rw-r--r--drivers/spi/spi-slave-system-control.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-slave-system-control.c b/drivers/spi/spi-slave-system-control.c
index c0257e937995..169f3d595f60 100644
--- a/drivers/spi/spi-slave-system-control.c
+++ b/drivers/spi/spi-slave-system-control.c
@@ -60,6 +60,7 @@ static void spi_slave_system_control_complete(void *arg)
case CMD_REBOOT:
dev_info(&priv->spi->dev, "Rebooting system...\n");
kernel_restart(NULL);
+ break;
case CMD_POWEROFF:
dev_info(&priv->spi->dev, "Powering off system...\n");