Messages in this thread Patch in this message | | | Date | Wed, 21 Nov 2007 11:56:19 +0300 | From | "Cyrill Gorcunov" <> | Subject | [PATCH] PPC: trivial fix of missed increment on counter |
| |
This patch does fix missed increment on counter
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> --- 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, | |