summaryrefslogtreecommitdiffstats
path: root/Documentation/driver-model/porting.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/driver-model/porting.txt')
-rw-r--r--Documentation/driver-model/porting.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/driver-model/porting.txt b/Documentation/driver-model/porting.txt
index 92d86f7271b4..453053f1661f 100644
--- a/Documentation/driver-model/porting.txt
+++ b/Documentation/driver-model/porting.txt
@@ -340,8 +340,10 @@ comparison:
int (*match)(struct device * dev, struct device_driver * drv);
-match should return '1' if the driver supports the device, and '0'
-otherwise.
+match should return positive value if the driver supports the device,
+and zero otherwise. It may also return error code (for example
+-EPROBE_DEFER) if determining that given driver supports the device is
+not possible.
When a device is registered, the bus's list of drivers is iterated
over. bus->match() is called for each one until a match is found.