diff options
Diffstat (limited to 'Documentation/driver-model/porting.txt')
-rw-r--r-- | Documentation/driver-model/porting.txt | 6 |
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 | ||
343 | match should return '1' if the driver supports the device, and '0' | 343 | match should return positive value if the driver supports the device, |
344 | otherwise. | 344 | and zero otherwise. It may also return error code (for example |
345 | -EPROBE_DEFER) if determining that given driver supports the device is | ||
346 | not possible. | ||
345 | 347 | ||
346 | When a device is registered, the bus's list of drivers is iterated | 348 | When a device is registered, the bus's list of drivers is iterated |
347 | over. bus->match() is called for each one until a match is found. | 349 | over. bus->match() is called for each one until a match is found. |