Linux PARISC architecture development
 help / color / mirror / Atom feed
* [parisc-linux] Unregister driver patch
@ 2001-02-24 15:56 Matthieu Delahaye
  2001-02-25  6:16 ` Grant Grundler
  0 siblings, 1 reply; 7+ messages in thread
From: Matthieu Delahaye @ 2001-02-24 15:56 UTC (permalink / raw)
  To: parisc-linux

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-02-26 17:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-24 15:56 [parisc-linux] Unregister driver patch Matthieu Delahaye
2001-02-25  6:16 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox