On Wed, 30 Jan 2013, stl wrote: > Hello all, > I am writing a USB device driver and I have some problems to write > the specific probe() function. What does your device do? > In the documentation, it is said that the probe function is > responsible for mapping the > platform ressources (IRQ and I/O memory) USB devices don't have platform resources. The don't generate IRQs and they don't map memory. > Firstly, what should I do with platform_get_ressource() function? Nothing. > Some vendors use device_register(). What does it do? It causes a device structure to be registered with the device core. This binds it to a driver and makes it appear under /sys/devices, among other things. USB device drivers generally don't have to use it. > And what is the field platform_data aim? (field of the struct device) It is meant for storing platform-specific data relevant to the device. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html