From patchwork Wed Jan 6 14:05:11 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vimal singh X-Patchwork-Id: 71293 X-Patchwork-Delegate: tony@atomide.com 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 o06E5XFV003971 for ; Wed, 6 Jan 2010 14:05:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932227Ab0AFOFd (ORCPT ); Wed, 6 Jan 2010 09:05:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932226Ab0AFOFd (ORCPT ); Wed, 6 Jan 2010 09:05:33 -0500 Received: from mail-bw0-f227.google.com ([209.85.218.227]:45303 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932225Ab0AFOFc (ORCPT ); Wed, 6 Jan 2010 09:05:32 -0500 Received: by bwz27 with SMTP id 27so10687196bwz.21 for ; Wed, 06 Jan 2010 06:05:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:cc:content-type; bh=pYybEOZ251zpm7AhG8kwWx+7jHvoDoLLtzZtlLbzUM0=; b=nDqmJ6+pLPfdVojYnn+U8g16IxiuXdYy03FHkA3ZqOeGgJ/zXniuDDBqV3594A8U6h CUp0fDQ2mMMbDnbX0zylfT5g1334sxbniIJR79A6urcIgOaN/WAZjrZHFYvYofXI6scL PtooZswEkoojw535mzS+loDre5E6TXRCUnraY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:cc:content-type; b=JsineGA1JwvdpUzjLPshXVtMy+HslX072MPUiV3creDeD8VJA6czhZl7Mti6aL58QH CH1s4NmULFN6N41jdwoP6lWov7YybkyrrPFLhUc28rpJVmea4Fmc8bFFfXt25dbYiHBv hSNIwN5YavmvhnTB65z3TSmQvQYQy8aES8idc= MIME-Version: 1.0 Received: by 10.204.4.215 with SMTP id 23mr111424bks.160.1262786731203; Wed, 06 Jan 2010 06:05:31 -0800 (PST) From: Vimal Singh Date: Wed, 6 Jan 2010 19:35:11 +0530 Message-ID: Subject: [PATCH 2/3][NAND][OMAP]: correct 'info' pointer in 'omap_nand_remove' To: Linux MTD Cc: linux-omap@vger.kernel.org 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 4eea97c..16120e2 100644 --- a/drivers/mtd/nand/omap2.c +++ b/drivers/mtd/nand/omap2.c @@ -1054,7 +1054,8 @@ out_free_info: static int omap_nand_remove(struct platform_device *pdev) { struct mtd_info *mtd = platform_get_drvdata(pdev); - struct omap_nand_info *info = mtd->priv; + struct omap_nand_info *info = container_of(mtd, struct omap_nand_info, + mtd); platform_set_drvdata(pdev, NULL); if (use_dma)