module_platform_driver vs module_init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux