From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: Unregisrtering a platform driver from another platform driver.
Date: Wed, 21 Jan 2015 12:15:28 +0100 [thread overview]
Message-ID: <2724993.T8ceeSDQyL@wuerfel> (raw)
In-Reply-To: <CAAVaN8xnO5mE1uwW=SPENwOugLv3n+JeNCE9ZycEK2_9QmXSPw@mail.gmail.com>
On Wednesday 21 January 2015 10:27:35 Andy Ng wrote:
> Dear Colleagues,
>
> I would like to call "platform_driver_unregister" for a static module
> A from a static module B.
> The static module A register its name "physmap-flash".
>
> Is there any kernel API to search and find the "physmap-flash" device,
> and then call unregistered with "platform_driver_unregister" from
> module B.
I assume you don't actually mean platform_driver_unregister(), as
that would remove the entire driver, not just the connection between
the driver and the device.
> Any advice will be very much appreciated.
You can do it from user space using the 'unbind' attribute, but I suppose
that's not what you want.
Can you describe why you want to unbind the device?
Arnd
next prev parent reply other threads:[~2015-01-21 11:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-21 10:27 Unregisrtering a platform driver from another platform driver Andy Ng
2015-01-21 11:15 ` Arnd Bergmann [this message]
2015-01-21 12:10 ` Andy Ng
2015-01-21 13:13 ` Arnd Bergmann
2015-01-21 13:49 ` Russell King - ARM Linux
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=2724993.T8ceeSDQyL@wuerfel \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@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