浏览代码

omap: mailbox: 2420 should be detected at run-time

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Felipe Contreras 15 年之前
父节点
当前提交
7b2729a15b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      arch/arm/mach-omap2/mailbox.c

+ 2 - 1
arch/arm/mach-omap2/mailbox.c

@@ -455,7 +455,8 @@ err_dsp:
 static int __devexit omap2_mbox_remove(struct platform_device *pdev)
 static int __devexit omap2_mbox_remove(struct platform_device *pdev)
 {
 {
 #if defined(CONFIG_ARCH_OMAP2420)
 #if defined(CONFIG_ARCH_OMAP2420)
-	omap_mbox_unregister(&mbox_iva_info);
+	if (cpu_is_omap2420())
+		omap_mbox_unregister(&mbox_iva_info);
 #endif
 #endif
 
 
 	if (cpu_is_omap44xx()) {
 	if (cpu_is_omap44xx()) {