From patchwork Wed Jun 23 00:11:36 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ohad Ben Cohen X-Patchwork-Id: 107522 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o5N0C8TU022157 for ; Wed, 23 Jun 2010 00:12:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752985Ab0FWALv (ORCPT ); Tue, 22 Jun 2010 20:11:51 -0400 Received: from mail-ww0-f46.google.com ([74.125.82.46]:46372 "EHLO mail-ww0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752914Ab0FWALt (ORCPT ); Tue, 22 Jun 2010 20:11:49 -0400 Received: by wwc33 with SMTP id 33so584186wwc.19 for ; Tue, 22 Jun 2010 17:11:48 -0700 (PDT) Received: by 10.227.127.85 with SMTP id f21mr6945288wbs.115.1277251908207; Tue, 22 Jun 2010 17:11:48 -0700 (PDT) Received: from localhost.localdomain (89-139-43-41.bb.netvision.net.il [89.139.43.41]) by mx.google.com with ESMTPS id d37sm5042171wej.42.2010.06.22.17.11.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 22 Jun 2010 17:11:47 -0700 (PDT) From: Ohad Ben-Cohen To: Cc: Hiroshi Doyu , Omar Ramirez Luna , Ohad Ben-Cohen Subject: [PATCH 4/4] dspbridge: use mailbox API to set rx callback Date: Wed, 23 Jun 2010 03:11:36 +0300 Message-Id: <1277251896-6890-4-git-send-email-ohad@wizery.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1277251896-6890-1-git-send-email-ohad@wizery.com> References: <1277251896-6890-1-git-send-email-ohad@wizery.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 23 Jun 2010 00:12:10 +0000 (UTC) diff --git a/drivers/dsp/bridge/core/tiomap3430.c b/drivers/dsp/bridge/core/tiomap3430.c index 35c6678..1190c79 100644 --- a/drivers/dsp/bridge/core/tiomap3430.c +++ b/drivers/dsp/bridge/core/tiomap3430.c @@ -555,7 +555,7 @@ static int bridge_brd_start(struct bridge_dev_context *hDevContext, * Enable Mailbox events and also drain any pending * stale messages. */ - dev_context->mbox = omap_mbox_get("dsp"); + dev_context->mbox = omap_mbox_get("dsp", (int (*)(void *))io_mbox_msg); if (IS_ERR(dev_context->mbox)) { dev_context->mbox = NULL; pr_err("%s: Failed to get dsp mailbox handle\n", @@ -565,8 +565,6 @@ static int bridge_brd_start(struct bridge_dev_context *hDevContext, } if (DSP_SUCCEEDED(status)) { - dev_context->mbox->rxq->callback = (int (*)(void *))io_mbox_msg; - /*PM_IVA2GRPSEL_PER = 0xC0;*/ temp = (u32) *((reg_uword32 *) ((u32) (resources->dw_per_pm_base) + 0xA8));