From: Jonathan Cameron <jic23@cam.ac.uk>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: regmap module_put usage.
Date: Mon, 05 Sep 2011 13:55:15 +0100 [thread overview]
Message-ID: <4E64C6B3.80105@cam.ac.uk> (raw)
Hi Mark,
I'm playing around with converting an IIO driver over to regmap
(to get a feel for when it makes sense and when it doesn't).
Right now, calling regmap_exit() results in a module_put of the
regmap-spi module which never has a module_get and hence it's
module use count wraps around and all hell breaks loose?
Am I missing something about where that get should occur?
It's entirely plausible I just have a local bug but I right
now I can't see how the logic is supposed to function!
Thanks,
Jonathan
next reply other threads:[~2011-09-05 12:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-05 12:55 Jonathan Cameron [this message]
2011-09-05 15:00 ` regmap module_put usage Mark Brown
2011-09-05 15:13 ` Jonathan Cameron
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=4E64C6B3.80105@cam.ac.uk \
--to=jic23@cam.ac.uk \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox