Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18c99362 authored by Akinobu Mita's avatar Akinobu Mita Committed by Linus Torvalds
Browse files

dio: use dio_match_device() in dio_bus_match()



dio_bus_match() can use dio_match_device().

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 93026e21
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -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;
}