Guardian Digital Inc. > InfoCenter > Mailing List Archives > Linux Kernel

Linux Kernel Mailing List Archive

From: Patrick Gefre (pfg@sgi.com)
Date: Wed Dec 22 2004 - 10:20:42 EST

Russell King wrote:
> On Wed, Dec 22, 2004 at 01:44:23PM +0000, Christoph Hellwig wrote:
>>>I still save off the pci_dev ptrs for all cards found, so I can
>>>register with the serial core after probe (is there a better way?).
>>>Should I register the driver separately for each card ? That seems a
>>>bit overkill.
>>You should register them with the serial core in ->probe.
> You want to register with the serial core before you register with PCI.
> Then add each port when you find it via the PCI driver ->probe method.
> Removal is precisely the reverse order - remove each port in ->remove
> method first, then unregister from serial core.

How do I know how many ports I have when I register with serial core ? I use the info I got when i
probed to fill in .nr

-- Pat
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

[ About Guardian Digital ] - [ Press Center ] - [ Contact Us ] - [ System Activation ] - [ Reseller Info ] - [ Online Store ] - [ Site Map ]
Copyright (c) 2000 - 2004 Guardian Digital, Inc. Linux Lockbox and EnGarde are Trademarks of Guardian Digital, Inc.