Can request_firmware be called from a platform_driver ?
Dave Hylands
dhylands at gmail.com
Thu Apr 19 13:13:17 EDT 2012
Hi Mike,
On Thu, Apr 19, 2012 at 9:42 AM, Holmes, Michael A (Mike)
<Mike.Holmes at lsi.com> wrote:
>
...snip...
> Thanks, my module does use module_init, but now that this code is compiled as a module and not compiled into the kernel, I find that the .probe method is never called so I must still be missing something.
>
> I tried calling the probe directly in the init but this still fails with modprobe complaining.
>
> Should my .probe be called if my init only calls platform_driver_register and this module is loaded with modprobe rather than by the kernel booting?
> And really I only want to call the probe method so that I can get hold of a struct platform_device *pdev to call firmware_request() with, maybe I am going about this completely incorrectly?
In order for your probe routine to be called there has to be both a
device and driver registered with the same name. Normally the device
is registered in the board init, and the driver does the call to
register the driver in its init routine. When a match is found, that
then causes the probe routine to be called.
--
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com
More information about the Kernelnewbies
mailing list