From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Sat, 17 Jan 2004 00:09:16 +0000 Subject: Re: registering same sysfs class in different drivers. Message-Id: <20040117000916.GA3698@kroah.com> List-Id: References: <20040116064233.78134.qmail@web14915.mail.yahoo.com> In-Reply-To: <20040116064233.78134.qmail@web14915.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, Jan 15, 2004 at 10:42:33PM -0800, Jon Smirl wrote: > The DRI drivers for each card type are indepenent from each other, but they all > exist in the same sysfs class. Right now when I try to load a second driver I'm > faulting in sysfs:create_dir with parent dentry NULL. create_dir() is called via > simple_add_class_device(). Either driver loads standalone without problem. > > I suspect the fault is because each driver is registering it's own copy of the > 'dri' class. Is there some mechanism to see if the class has already been > registered and use the preexisting copy? class_register() always returns 0. Yes, you can't register two classes with the same name. But that should have given you an error, care to fix that up and send me a patch? thanks, greg k-h ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel