Skip to content

Commit

Permalink
dio: use dio_match_device() in dio_bus_match()
Browse files Browse the repository at this point in the history
dio_bus_match() can use dio_match_device().

Signed-off-by: Akinobu Mita <[email protected]>
Signed-off-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
mita authored and torvalds committed Jul 21, 2008
1 parent 93026e2 commit 18c9936
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions drivers/dio/dio-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down

0 comments on commit 18c9936

Please sign in to comment.