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, must not
18           return -EPROBE_DEFER.
19

DESCRIPTION

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