Skip to contentSkip to conversation

PPC: fix missed increment on device interface counter

PATCH New Cyrill Gorcunov 1 participant 1 message Nov 21, 2007 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC: fix missed increment on device interface counter

From: Cyrill Gorcunov <[email protected]>

This patch adds simple increment on device interface counter (it seems to be accidently missed)

---

 arch/powerpc/platforms/pasemi/electra_ide.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/platforms/pasemi/electra_ide.c +1 -1
index 12fb0c9..8e73086 100644
@@ -42,7 +42,7 @@ static int __devinit electra_ide_init(void)
 	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,