From: johan.adolfsson@axis.com
To: "David Woodhouse" <dwmw2@infradead.org>, <johan.adolfsson@axis.com>
Cc: <linux-mtd@lists.infradead.org>
Subject: Re: [PATCH/RFC] Create mtdram device at runtime.
Date: Tue, 30 Apr 2002 15:19:45 +0200 [thread overview]
Message-ID: <01ff01c1f049$b2a19fa0$bdb270d5@homeip.net> (raw)
In-Reply-To: 18096.1020169313@redhat.com
> johan.adolfsson@axis.com said:
> > Here it comes, not tested though... Beleive I took care of the cleanup
> > as well.
>
> What about the case where mtdram_init_device() is called from elsewhere?
> Perhaps we should register a cleanup function with as mtdram_init_device()
> and call _that_ in the later cleanup?
> --
> dwmw2
How about letting mtdram_init_device return an allocated mtd_info*
and the caller is responsible for cleaning it up?
The hardcoded init functions store the returned pointer in the
static mtd_info variable and do it's clean-up on exit.
/Johan
next prev parent reply other threads:[~2002-04-30 13:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-30 10:01 [PATCH/RFC] Create mtdram device at runtime johan.adolfsson
2002-04-30 10:10 ` David Woodhouse
2002-04-30 10:28 ` johan.adolfsson
2002-04-30 12:21 ` David Woodhouse
2002-04-30 13:19 ` johan.adolfsson [this message]
2002-04-30 16:21 ` David Woodhouse
2002-05-06 8:49 ` Johan Adolfsson
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='01ff01c1f049$b2a19fa0$bdb270d5@homeip.net' \
--to=johan.adolfsson@axis.com \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.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