tdc: adapt our own trigger to latest changes

As Alessandro said: "There is a minor incompatible change for people who write
their own triggers: the trigger must set ti->cset and start disabled. The core
will only enable it after everything is properly created."
Signed-off-by: Samuel Iglesias Gonsálvez's avatarSamuel Iglesias Gonsalvez <siglesias@igalia.com>
parent 89eedd1f
......@@ -36,6 +36,9 @@ static struct zio_ti *ztt_create(struct zio_trigger_type *trig,
if (!ti)
return ERR_PTR(-ENOMEM);
ti->flags = ZIO_DISABLED;
ti->cset = cset;
return ti;
}
......
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