mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] dio: use dio_match_device()
@ 2008-07-05 11:22 Akinobu Mita
  2008-07-16 14:47 ` Geert Uytterhoeven
  0 siblings, 1 reply; 2+ messages in thread
From: Akinobu Mita @ 2008-07-05 11:22 UTC (permalink / raw)
  To: linux-kernel; +Cc: Geert Uytterhoeven, Roman Zippel, linux-m68k

dio_bus_match() can use dio_match_device().

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: linux-m68k@lists.linux-m68k.org
---
 drivers/dio/dio-driver.c |   14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

Index: 2.6-git/drivers/dio/dio-driver.c
===================================================================
--- 2.6-git.orig/drivers/dio/dio-driver.c
+++ 2.6-git/drivers/dio/dio-driver.c
@@ -119,19 +119,7 @@ static int dio_bus_match(struct device *
 	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;
 }
 
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] dio: use dio_match_device()
  2008-07-05 11:22 [PATCH] dio: use dio_match_device() Akinobu Mita
@ 2008-07-16 14:47 ` Geert Uytterhoeven
  0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2008-07-16 14:47 UTC (permalink / raw)
  To: Akinobu Mita; +Cc: linux-kernel, Roman Zippel, linux-m68k

On Sat, 5 Jul 2008, Akinobu Mita wrote:
> dio_bus_match() can use dio_match_device().

Thanks, queued for 2.6.27

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-16 14:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-05 11:22 [PATCH] dio: use dio_match_device() Akinobu Mita
2008-07-16 14:47 ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®