aboutsummaryrefslogtreecommitdiffstats
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:
340 340
341 int (*match)(struct device * dev, struct device_driver * drv); 341 int (*match)(struct device * dev, struct device_driver * drv);
342 342
343match should return '1' if the driver supports the device, and '0' 343match should return positive value if the driver supports the device,
344otherwise. 344and zero otherwise. It may also return error code (for example
345-EPROBE_DEFER) if determining that given driver supports the device is
346not possible.
345 347
346When a device is registered, the bus's list of drivers is iterated 348When a device is registered, the bus's list of drivers is iterated
347over. bus->match() is called for each one until a match is found. 349over. bus->match() is called for each one until a match is found.