| title: | Re Problem in input device module creation |
|
On Fri, 07 Jul 2006 17:50:10 +0100, Russell King - ARM Linux wrote:
On Fri, Jul 07, 2006 at 09:27:23AM +0530, Prafulla WADASKAR wrote:
input_unregister_device(kp- inp_dev);
/* if this enabled then re-insmod does not work, gives kernel page fault
input_free_device(kp- inp_dev); */
Whats the page fault you get here? This could be related to your problem.
(please show full oops dump.)
input_unregister_device() already calls kfree(). input_free_device() is
only meant for freeing the data before input_register_device() is
succesfully called. I ran into this same issue while writing ati_remote2
input driver.
See here:
rel="nofollow" article.gmane.org/gmane.linux.usb.devel/39260 article.gmane.org/gmane.linux.usb.devel/39260
--
Ville Syrjälä
syrjala@xxxxxx
rel="nofollow" www.sci.fi/~syrjala/ www.sci.fi/~syrjala/
-------------------------------------------------------------------
List admin: rel="nofollow" lists.arm.linux.org.uk/mailman/listinfo/linux-arm lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ: rel="nofollow" www.arm.linux.org.uk/mailinglists/faq.php www.arm.linux.org.uk/mailinglists/faq.php
Etiquette: rel="nofollow" www.arm.linux.org.uk/mailinglists/etiquette.php www.arm.linux.org.uk/mailinglists/etiquette.php
|