From: Dmitry Torokhov <dtor_core@ameritech.net>
To: Alessandro Zummo <alessandro.zummo@towertech.it>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC][PATCH 7/7] RTC subsystem, test device/driver
Date: Mon, 26 Dec 2005 18:45:34 -0500 [thread overview]
Message-ID: <200512261845.34731.dtor_core@ameritech.net> (raw)
In-Reply-To: <20051226195913.6f680634@inspiron>
On Monday 26 December 2005 13:59, Alessandro Zummo wrote:
> +struct platform_device test_dev_zero = {
> + .name = "rtc-test",
> + .id = 0,
> + .dev.release = test_release,
> +};
> +
> +struct platform_device test_dev_one = {
> + .name = "rtc-test",
> + .id = 1,
> + .dev.release = test_release,
> +};
> +
You should never ever statically allicate devices that can be unregistered.
Guess what will happen if one does this:
rmmod rtc_test < /sys/class/rtc/rtcX/date
where rctX is class device created by rtc-test0 or rtc-test1.
--
Dmitry
next prev parent reply other threads:[~2005-12-26 23:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-26 18:59 [RFC][PATCH 7/7] RTC subsystem, test device/driver Alessandro Zummo
2005-12-26 23:45 ` Dmitry Torokhov [this message]
2005-12-27 1:22 ` Alessandro Zummo
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=200512261845.34731.dtor_core@ameritech.net \
--to=dtor_core@ameritech.net \
--cc=alessandro.zummo@towertech.it \
--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 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.