Commit 1115875f authored by Imre Deak's avatar Imre Deak Committed by Juha Yrjola

lcd_mipid: call cancel_rearming_delayed_work only on scheduled work

Otherwise it will spin forever.
Signed-off-by: default avatarImre Deak <imre.deak@solidboot.com>
Signed-off-by: default avatarJuha Yrjola <juha.yrjola@solidboot.com>
parent afffc245
......@@ -381,7 +381,8 @@ static void mipid_esd_start_check(struct mipid_device *md)
static void mipid_esd_stop_check(struct mipid_device *md)
{
cancel_rearming_delayed_work(&md->esd_work);
if (md->esd_check != NULL)
cancel_rearming_delayed_work(&md->esd_work);
}
static void mipid_esd_work(void *data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment