1PLATFORM_CREATE_BUND(9)  Device drivers infrastructure PLATFORM_CREATE_BUND(9)
2
3
4

NAME

6       platform_create_bundle - register driver and create corresponding
7       device
8

SYNOPSIS

10       struct platform_device *
11                                                       platform_create_bundle(struct platform_driver * driver,
12                                                       int (*probe) (struct platform_device *),
13                                                       struct resource * res,
14                                                       unsigned int n_res,
15                                                       const void * data,
16                                                       size_t size);
17

ARGUMENTS

19       driver
20           platform driver structure
21
22       probe
23           the driver probe routine, probably from an __init section
24
25       res
26           set of resources that needs to be allocated for the device
27
28       n_res
29           number of resources
30
31       data
32           platform specific data for this platform device
33
34       size
35           size of platform specific data
36

DESCRIPTION

38       Use this in legacy-style modules that probe hardware directly and
39       register a single platform device and corresponding platform driver.
40
41       Returns struct platform_device pointer on success, or ERR_PTR on error.
42
44Kernel Hackers Manual 3.10         June 2019           PLATFORM_CREATE_BUND(9)
Impressum