From: Lars-Peter Clausen <lars@metafoo.de>
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: Jonathan Cameron <jic23@cam.ac.uk>,
linux-iio@vger.kernel.org,
device-drivers-devel@blackfin.uclinux.org, drivers@analog.com,
Marten Svanfeldt <marten@intuitiveaerial.com>
Subject: Re: [PATCH] IIO: trigger: Add hrtimer trigger
Date: Tue, 13 Mar 2012 14:39:34 +0100 [thread overview]
Message-ID: <4F5F4E16.5020305@metafoo.de> (raw)
In-Reply-To: <1331644737-27822-1-git-send-email-lars@metafoo.de>
On 03/13/2012 02:18 PM, Lars-Peter Clausen wrote:
>[...]
> + static int __devinit iio_trig_hrtimer_probe(struct platform_device *pdev)
> +{
> [...]
> +
> +err_put_trigger:
> + iio_put_trigger(trig);
Looking a bit closer a how iio triggers are managed I think I need to call
iio_free_trigger here instead of iio_put_trigger.
> +
> + return ret;
> +}
> +
> +static int __devexit iio_trig_hrtimer_remove(struct platform_device *pdev)
> +{
> + struct iio_hrtimer_trig_info *trig_info = platform_get_drvdata(pdev);
> + struct iio_trigger *trig = trig_info->trigger;
> +
> + hrtimer_cancel(&trig_info->timer);
> + iio_trigger_unregister(trig);
> +
And I think here a iio_free_trigger is missing as well.
But it looks as if the existing trigger driver suffer from similar issues.
> + return 0;
> +}
> +
prev parent reply other threads:[~2012-03-13 13:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-13 13:18 [PATCH] IIO: trigger: Add hrtimer trigger Lars-Peter Clausen
2012-03-13 13:39 ` Lars-Peter Clausen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F5F4E16.5020305@metafoo.de \
--to=lars@metafoo.de \
--cc=device-drivers-devel@blackfin.uclinux.org \
--cc=drivers@analog.com \
--cc=jic23@cam.ac.uk \
--cc=linux-iio@vger.kernel.org \
--cc=marten@intuitiveaerial.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.