summaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc/ste_modem_rproc.c
diff options
context:
space:
mode:
authorSjur Brændeland <sjur.brandeland@stericsson.com>2013-02-21 18:15:37 +0100
committerOhad Ben-Cohen <ohad@wizery.com>2013-04-07 14:04:25 +0300
commitba7290e01663787fcfc2bedaff6232359d4ff248 (patch)
treef95914f654f498088b0fdb331904593c3a519bc7 /drivers/remoteproc/ste_modem_rproc.c
parent232fcdbb450000850bef8ff7e022cde2b4053f67 (diff)
downloadtalos-obmc-linux-ba7290e01663787fcfc2bedaff6232359d4ff248.tar.gz
talos-obmc-linux-ba7290e01663787fcfc2bedaff6232359d4ff248.zip
remoteproc: calculate max_notifyid by counting vrings
Simplify handling of max_notifyid by simply counting the number of vrings. Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com> Acked-by: Ido Yariv <ido@wizery.com> [small terminology changes] Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Diffstat (limited to 'drivers/remoteproc/ste_modem_rproc.c')
-rw-r--r--drivers/remoteproc/ste_modem_rproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/remoteproc/ste_modem_rproc.c b/drivers/remoteproc/ste_modem_rproc.c
index 8cc588f38cd2..6fc213948146 100644
--- a/drivers/remoteproc/ste_modem_rproc.c
+++ b/drivers/remoteproc/ste_modem_rproc.c
@@ -213,7 +213,7 @@ static int sproc_start(struct rproc *rproc)
}
/* Subscribe to notifications */
- for (i = 0; i < rproc->max_notifyid; i++) {
+ for (i = 0; i <= rproc->max_notifyid; i++) {
err = sproc->mdev->ops.kick_subscribe(sproc->mdev, i);
if (err) {
sproc_err(sproc,
OpenPOWER on IntegriCloud