diff options
author | Sjur Brændeland <sjur.brandeland@stericsson.com> | 2013-02-21 21:15:37 +0400 |
---|---|---|
committer | Ohad Ben-Cohen <ohad@wizery.com> | 2013-04-07 15:04:25 +0400 |
commit | ba7290e01663787fcfc2bedaff6232359d4ff248 (patch) | |
tree | f95914f654f498088b0fdb331904593c3a519bc7 /drivers/remoteproc/ste_modem_rproc.c | |
parent | 232fcdbb450000850bef8ff7e022cde2b4053f67 (diff) | |
download | linux-ba7290e01663787fcfc2bedaff6232359d4ff248.tar.xz |
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.c | 2 |
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, |