diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2008-07-17 21:16:35 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-20 17:24:40 -0700 |
commit | 18c993629a5a5938a032f04a698d15122550593d (patch) | |
tree | 4016e8903da9c043da6ca386a1c22a9aa21c1156 /drivers/dio | |
parent | 93026e217b46b70f9719caf69e716fa3bbe1d20c (diff) | |
download | lwn-18c993629a5a5938a032f04a698d15122550593d.tar.gz lwn-18c993629a5a5938a032f04a698d15122550593d.zip |
dio: use dio_match_device() in dio_bus_match()
dio_bus_match() can use dio_match_device().
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/dio')
-rw-r--r-- | drivers/dio/dio-driver.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/dio/dio-driver.c b/drivers/dio/dio-driver.c index 8cd8507b1a8a..9c0c9afcd0ac 100644 --- a/drivers/dio/dio-driver.c +++ b/drivers/dio/dio-driver.c @@ -119,19 +119,7 @@ static int dio_bus_match(struct device *dev, struct device_driver *drv) if (!ids) return 0; - while (ids->id) { - if (ids->id == DIO_WILDCARD) - return 1; - if (DIO_NEEDSSECID(ids->id & 0xff)) { - if (ids->id == d->id) - return 1; - } else { - if ((ids->id & 0xff) == (d->id & 0xff)) - return 1; - } - ids++; - } - return 0; + return dio_match_device(ids, d) ? 1 : 0; } |