Linux PARISC architecture development
 help / color / mirror / Atom feed
From: Matthieu Delahaye <delahaym@esiee.fr>
To: parisc-linux@thepuffingroup.com
Subject: [parisc-linux] Unregister driver patch
Date: Sat, 24 Feb 2001 16:56:08 +0100	[thread overview]
Message-ID: <3A97D998.5D019AAB@esiee.fr> (raw)

Hi all!

Here is a patch which implements the unregister_driver() function.

I had to change a field in struct hp_device:
The field "manage" (bool) become "driver" (pointer on a pa_iodc_driver),

since unregister_driver has to know by which driver a device was managed
to make unregister proper.
unregister_driver() first remove the driver from the list. Then, it
looks for devices managed by this driver and changed their "driver"
field to NULL.


More over, some drivers call register_driver at least two times, e.g.
the gsc parallel port driver. When it append, BUG() is called and a
warning is send to give the name of the driver.

NOTE: Since the structure pa_iodc_driver is used to maintain the list of
the registered drivers, I think this do not have to be put in data.init
section.


Regards,

Matthieu Delahaye
ESIEE Team
http://www.esiee.fr/~puffin

             reply	other threads:[~2001-02-24 15:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-24 15:56 Matthieu Delahaye [this message]
2001-02-25  6:16 ` [parisc-linux] Unregister driver patch Grant Grundler
2001-02-25 11:02   ` Matthieu Delahaye
2001-02-26  4:30     ` Grant Grundler
2001-02-26 16:38       ` Matthew Wilcox
2001-02-26  5:30     ` Grant Grundler
2001-02-26 10:00       ` Matthieu Delahaye

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=3A97D998.5D019AAB@esiee.fr \
    --to=delahaym@esiee.fr \
    --cc=parisc-linux@thepuffingroup.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox