Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: greybus: light: check the correct value of delay_on

When checking the value of delay_on to set the channel as active, it was
checked the pointer and not the value, as it should be.

Fixes: cc43368a3c ("greybus: lights: Control runtime pm suspend/resume on AP side")

Signed-off-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Rui Miguel Silva and committed by
Greg Kroah-Hartman
5cf62679 544a6944

+1 -1
+1 -1
drivers/staging/greybus/light.c
··· 483 483 if (ret < 0) 484 484 goto out_pm_put; 485 485 486 - if (delay_on) 486 + if (*delay_on) 487 487 channel->active = true; 488 488 else 489 489 channel->active = false;