X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=Documentation%2Fdriver-model%2Fporting.txt;h=453053f1661f47e2dc3c75d0564b2105e8ddfb22;hb=66f5854c6894dc028fc13345838c6f82bfcfef0c;hp=92d86f7271b4d960431e3333ce5d0de3b9f9889e;hpb=b361735043e3001eadb1d40916fd1a4fca1a9363;p=karo-tx-linux.git 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.