On Sat, Sep 27, 2008 at 05:36:53PM +0300, Ramagudi Naziir wrote: > hello all, > > i am writing an external driver (not in-tree) and many kernel APIs > need a struct device. > > for example - clock API and DMA API... > > so how can I have it ? I currently don't have a probe function that > gives me a device pointer... What type of device is your driver supposed to support? The bus it belongs to will provide that device pointer, or you will need to create it yourself with a platform device if it is that type of device. Have a pointer to your driver anywhere? Why keep it out-of-tree? > should I "fake" a device ? Never. > or maybe I better register a probe function using platform_driver_register ? Probably. good luck, greg k-h -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ