Hi All,
I am new to USB world. I have a basic doubt. I wrote the USB
driver by going through some tutorials. I compiled it and inmod it
without any problems. Now, If I want to use my driver, I need a major
number. There I got stuck up. I didnt have any major number used in
my driver. So, how to open the USB device ? Can anybody be of any
help ? Here is my Init and CleanUp functions where I dont have any
major numbers used.
static int __init USBH__iInit()
{
int Result;
/* Register the driver with the USB subsystem */
Result = usb_register(&USBH__stApplDriver);
if (Result < 0)
{
printk(KERN_ERR "usb_register failed for the USB Application \
Driver: Error Number = %d",Result);
return -1;
}
return 0;
}
static void __exit USBH__vExit(void)
{
/* Deregister the driver from the USB subsystem */
usb_deregister(&USBH__stApplDriver);
}
module_init(USBH__iInit);
module_exit(USBH__vExit)
Regards,
Jayaprakash.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel