lkml.org 
[lkml]   [2007]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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,
\
 
 \ /
  Last update: 2007-11-21 09:59    [W:5.667 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site