table of contents
__PLATFORM_CREATE_BU(9) | Device drivers infrastructure | __PLATFORM_CREATE_BU(9) |
NAME¶
__platform_create_bundle - register driver and create corresponding device
SYNOPSIS¶
struct platform_device * __platform_create_bundle(struct platform_driver * driver, int (*probe) (struct platform_device *), struct resource * res, unsigned int n_res, const void * data, size_t size, struct module * module);
ARGUMENTS¶
driver
probe
res
n_res
data
size
module
DESCRIPTION¶
Use this in legacy-style modules that probe hardware directly and register a single platform device and corresponding platform driver.
Returns struct platform_device pointer on success, or ERR_PTR on error.
COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |