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

NAME

6       platform_driver_probe - register driver for non-hotpluggable device
7

SYNOPSIS

9       int platform_driver_probe(struct platform_driver * drv,
10                                 int (*probe) (struct platform_device *));
11

ARGUMENTS

13       drv
14           platform driver structure
15
16       probe
17           the driver probe routine, probably from an __init section
18

DESCRIPTION

20       Use this instead of platform_driver_register when you know the device
21       is not hotpluggable and has already been registered, and you want to
22       remove its run-once probe infrastructure from memory after the driver
23       has bound to the device.
24
25       One typical use for this would be with drivers for controllers
26       integrated into system-on-chip processors, where the controller devices
27       have been configured as part of board setup.
28
29       Returns zero if the driver registered and bound to a device, else
30       returns a negative error code and with the driver not registered.
31
33Kernel Hackers Manual 2.6.       November 2011         PLATFORM_DRIVER_PROB(9)
Impressum