Am Donnerstag, 7. April 2005 21:48 schrieb Alan Stern: > On Thu, 7 Apr 2005, Thomas Brinker wrote: > > static int __init fhg_usb32_udc_probe(struct device *_dev) > > { > > struct fhg_usb32_udc *dev = &memory; > > int retval; > > > > init_static(); > > > > printk("probing\n"); > > > > dev->dev = _dev; > > //dev->mach = _dev->platform_data; > > > > device_initialize(&dev->gadget.dev); > > dev->gadget.dev.parent = _dev; > > > > //dev->gadget.dev.dma_mask = _dev->dma_mask; > > > > the_controller = dev; > > dev_set_drvdata(_dev, dev); > > You don't set dev->gadget.dev.bus_id. That's probably the cause of your > problem. You also don't set dev->gadget.dev.release, although if you > never unregister the controller it doesn't matter. That's it!!!
Hurra!! No more Oopses. The other drivers are doing this in the static init of some struct's. I had chance here a lot because the driver should compile also with gcc 2.95 Thank you very much for helping Thomas -- Wo kämen wir hin, wenn alle sagten, wo kämen wir hin, und niemand ginge, um einmal zu schauen, wohin man käme, wenn man ginge. «Kurt Marti» ------------------------------------------------------- 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_ide95&alloc_id396&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel