diff options
author | Jayan John <x00jayan@ti.com> | 2009-09-24 18:57:44 +0530 |
---|---|---|
committer | Hari Kanigeri <h-kanigeri2@ti.com> | 2009-11-06 17:55:19 -0600 |
commit | add4e19852c597f16e66aec47174bb6350b90930 (patch) | |
tree | d13f89eb0a6fecf919988919aa3e94713c71d6a6 /drivers | |
parent | 789bed3e1d8733976825f016736d57fe9bc88f90 (diff) |
SYSLINK: ipc - fix in notify_dispatcher.
This patch fixes an issue found in notify_dispatcher.c where we
were not calling iounmap() on "mailbx_hw_config.mbox_linear_addr"
which we had obtained using ioremap() earlier in ntfy_disp_init().
Signed-off-by: Jayan John <x00jayan@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dsp/syslink/notify_dispatcher/notify_dispatcher.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dsp/syslink/notify_dispatcher/notify_dispatcher.c b/drivers/dsp/syslink/notify_dispatcher/notify_dispatcher.c index 440326250dca..d7de0460ced7 100644 --- a/drivers/dsp/syslink/notify_dispatcher/notify_dispatcher.c +++ b/drivers/dsp/syslink/notify_dispatcher/notify_dispatcher.c @@ -152,6 +152,8 @@ int ntfy_disp_deinit(void) mailbx_hw_config.mailboxes[i] = (-1); } + if (mailbx_hw_config.mbox_linear_addr != NULL) + iounmap((unsigned int *) mailbx_hw_config.mbox_linear_addr); mailbx_hw_config.mbox_modules = 0; mailbx_hw_config.mbox_linear_addr = (unsigned long int) (-1); return 0; |