other versions
__PLATFORM_REGISTER_(9) | Device drivers infrastructure | __PLATFORM_REGISTER_(9) |
NAME¶
__platform_register_drivers - register an array of platform drivers
SYNOPSIS¶
int __platform_register_drivers(struct platform_driver *const * drivers, unsigned int count, struct module * owner);
ARGUMENTS¶
drivers
an array of drivers to register
count
the number of drivers to register
owner
module owning the drivers
DESCRIPTION¶
Registers platform drivers specified by an array. On failure to register a driver, all previously registered drivers will be unregistered. Callers of this API should use platform_unregister_drivers to unregister drivers in the reverse order.
RETURN¶
0 on success or a negative error code on failure.
COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |