Messages in this thread | | | Date | Sun, 9 Dec 2012 12:55:17 +0100 | From | Borislav Petkov <> | Subject | Re: Incrementing module reference count |
| |
On Sat, Dec 08, 2012 at 11:17:31AM -0800, Aaron Williams wrote: > I got it working. I designed my solution to be generic so it's not > tied to just the at24 driver. I added a memory accessor module which > is basically a registry. The at24 driver registers with it and then > the Vitesse PHY driver calls it to gain access to the at24 driver. > Only when the Vitesse driver gets the memory accessor the reference > count for the at24 driver is incremented.
Hmm, I'm not sure you even need an additional layer because there's also request_module(). And as long as your module is using at24, you won't need to increment its refcount, AFAICT.
HTH.
-- Regards/Gruss, Boris.
| |