|
@@ -749,7 +749,7 @@ static int _count_mpu_irqs(struct omap_hwmod *oh)
|
|
ohii = &oh->mpu_irqs[i++];
|
|
ohii = &oh->mpu_irqs[i++];
|
|
} while (ohii->irq != -1);
|
|
} while (ohii->irq != -1);
|
|
|
|
|
|
- return i;
|
|
|
|
|
|
+ return i-1;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -772,7 +772,7 @@ static int _count_sdma_reqs(struct omap_hwmod *oh)
|
|
ohdi = &oh->sdma_reqs[i++];
|
|
ohdi = &oh->sdma_reqs[i++];
|
|
} while (ohdi->dma_req != -1);
|
|
} while (ohdi->dma_req != -1);
|
|
|
|
|
|
- return i;
|
|
|
|
|
|
+ return i-1;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -795,7 +795,7 @@ static int _count_ocp_if_addr_spaces(struct omap_hwmod_ocp_if *os)
|
|
mem = &os->addr[i++];
|
|
mem = &os->addr[i++];
|
|
} while (mem->pa_start != mem->pa_end);
|
|
} while (mem->pa_start != mem->pa_end);
|
|
|
|
|
|
- return i;
|
|
|
|
|
|
+ return i-1;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|