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