1PLATFORM_DEVICE_ADD_(9) Device drivers infrastructure PLATFORM_DEVICE_ADD_(9)
2
3
4
6 platform_device_add_resources - add resources to a platform device
7
9 int platform_device_add_resources(struct platform_device * pdev,
10 const struct resource * res,
11 unsigned int num);
12
14 pdev
15 platform device allocated by platform_device_alloc to add resources
16 to
17
18 res
19 set of resources that needs to be allocated for the device
20
21 num
22 number of resources
23
25 Add a copy of the resources to the platform device. The memory
26 associated with the resources will be freed when the platform device is
27 released.
28
30Kernel Hackers Manual 3.10 June 2019 PLATFORM_DEVICE_ADD_(9)