mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
dio: use dio_match_device() in dio_bus_match()
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]>
This commit is contained in:
parent
93026e217b
commit
18c993629a
1 changed files with 1 additions and 13 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue