summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorShivananda Hebbar <x0hebbar@ti.com>2011-02-23 05:32:02 -0600
committerAndy Green <andy.green@linaro.org>2011-09-26 17:28:26 +0100
commitbcbcd6d22facdd89dd114a42400ff8267e41b131 (patch)
treef8b5c5bdb99036dcd156d4a6483f6b80b893add3 /drivers
parent3f5dc566c244e90e0242e3adb526ec25d251b612 (diff)
syslink: devh: Fix build break with SYSLINK_RECOVERY disabled
If we disable SYSLINK_RECOVERY option in drivers->syslink ->SYSLINK_RECOVERY, build breaks with below errors drivers/built-in.o: In function `devh_notification_handler': drivers/dsp/syslink/devh/44xx/devh44xx.c:103: undefined reference to `ipc_recover_schedule' drivers/built-in.o: In function `devh44xx_wdt_ipc_notifier_call': drivers/dsp/syslink/devh/44xx/devh44xx.c:244: undefined reference to `ipc_recover_schedule' make: *** [.tmp_vmlinux1] Error 1 Fixed by moving ipc_revover_schedule function under SYSLINK_RECOVERY Flag. Change-Id: Idb4de38bbe1e2586eebac9f76150616ea93d56f3 Signed-off-by: Shivananda Hebbar <x0hebbar@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/dsp/syslink/devh/44xx/devh44xx.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/dsp/syslink/devh/44xx/devh44xx.c b/drivers/dsp/syslink/devh/44xx/devh44xx.c
index 3c7ec3fc44e1..92ead7d71f72 100644
--- a/drivers/dsp/syslink/devh/44xx/devh44xx.c
+++ b/drivers/dsp/syslink/devh/44xx/devh44xx.c
@@ -98,9 +98,10 @@ static void devh_notification_handler(u16 proc_id, u16 line_id, u32 event_id,
pr_warning("Sys Error occured in Ducati for proc_id = %d\n",
proc_id);
+#ifdef CONFIG_SYSLINK_RECOVERY
/* schedule the recovery */
ipc_recover_schedule();
-
+#endif /* ifdef CONFIG_SYSLINK_RECOVERY */
devh_notify_event((struct omap_devh *)arg, DEV_SYS_ERROR);
}
@@ -229,9 +230,10 @@ static int devh44xx_wdt_ipc_notifier_call(struct notifier_block *nb,
pr_warning("Ducati Watch Dog fired\n");
+#ifdef CONFIG_SYSLINK_RECOVERY
/* schedule the recovery */
ipc_recover_schedule();
-
+#endif /* ifdef CONFIG_SYSLINK_RECOVERY */
while (i--) {
obj = devh_get_obj(i);
devh_notify_event(obj, DEV_WATCHDOG_ERROR);