From patchwork Tue Dec 29 10:34:52 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sanjeev Premi X-Patchwork-Id: 70096 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id nBTAZ7sF020482 for ; Tue, 29 Dec 2009 10:35:08 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752709AbZL2KfH (ORCPT ); Tue, 29 Dec 2009 05:35:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752705AbZL2KfH (ORCPT ); Tue, 29 Dec 2009 05:35:07 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:47195 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752683AbZL2KfG (ORCPT ); Tue, 29 Dec 2009 05:35:06 -0500 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id nBTAYsto016517 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 29 Dec 2009 04:34:57 -0600 Received: from localhost.localdomain (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id nBTAYq1G003244; Tue, 29 Dec 2009 16:04:53 +0530 (IST) From: Sanjeev Premi To: linux-mtd@lists.infradead.org, linux-omap@vger.kernel.org Cc: Sanjeev Premi Subject: [PATCH] omap2/3: mtd: fix compile warning Date: Tue, 29 Dec 2009 16:04:52 +0530 Message-Id: <1262082892-5260-1-git-send-email-premi@ti.com> X-Mailer: git-send-email 1.6.2.2 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c index 1bb799f..08c193c 100644 --- a/drivers/mtd/nand/omap2.c +++ b/drivers/mtd/nand/omap2.c @@ -505,7 +505,7 @@ static void omap_write_buf_dma_pref(struct mtd_info *mtd, omap_write_buf_pref(mtd, buf, len); else /* start transfer in DMA mode */ - omap_nand_dma_transfer(mtd, buf, len, 0x1); + omap_nand_dma_transfer(mtd, (void *)buf, len, 0x1); } /**