module_platform_driver vs module_init
Tomek The Messenger
tomekthemessenger at gmail.com
Tue Apr 28 09:56:37 EDT 2020
Hi
If I have to parse some properties from dts and none file operations are
set for user space what is better to use platform driver or just
module_init?
If I use module_init(my_init) then in my_init I need to use:
'of_find_compatible_node' in order to find node in device tree and parse
properties.
For platform driver I have it on entry: pdev->dev->of_node
BR
Tomek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20200428/82f143a4/attachment.html>
More information about the Kernelnewbies
mailing list