[PATCH] PPC: trivial fix of missed increment on counter

From: Cyrill Gorcunov
Date: Wed Nov 21 2007 - 03:56:30 EST


This patch does fix missed increment on counter

Signed-off-by: Cyrill Gorcunov <gorcunov@xxxxxxxxx>
---
Sorry for that nonstandart patch submission - I've only access
to gmail with Internet Explorer on my work. If that is not OK - will resend
the patch today evening with mutt.
--- a/arc/powerpc/platforms/pasemi/electra_ide.c Tue Nov 13 03:05:24 2007
+++ b/arc/powerpc/platforms/pasemi/electra_ide.c Fri Nov 16 10:32:12 2007
@@ -42,7 +42,7 @@
np = of_find_compatible_node(NULL, "ide", "electra-ide");
i = 0;

- while (np && i < MAX_IFS) {
+ while (np && i++ < MAX_IFS) {
memset(r, 0, sizeof(r));

/* pata_platform wants two address ranges: one for the base registers,