Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757639Ab1FQILn (ORCPT ); Fri, 17 Jun 2011 04:11:43 -0400 Received: from mail-iw0-f174.google.com ([209.85.214.174]:54235 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757397Ab1FQILk (ORCPT ); Fri, 17 Jun 2011 04:11:40 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=ARxR3lvi7Uu/LDOpOq5+T73z/8rNjKghFQNWA7MlHkdpHfMgK+3A0tVJbUaatICdHC SZEYd+A0ai5f5w3sw6j454SM55OjRliQJNV4cdJHlfcEv5PwyD+hj5D+Dck1ywpkRxWS dlzyGl+XepEgRnxHo0mFW0CaT8+M5WjfAHErc= Subject: [PATCH 2/2] mtd: onenand/samsung.c: fix build error From: Axel Lin To: linux-kernel@vger.kernel.org Cc: Dmitry Eremin-Solenikov , Kyungmin Park , Artem Bityutskiy , David Woodhouse , linux-mtd@lists.infradead.org In-Reply-To: <1308298176.13535.1.camel@phoenix> References: <1308298176.13535.1.camel@phoenix> Content-Type: text/plain; charset="UTF-8" Date: Fri, 17 Jun 2011 16:11:34 +0800 Message-ID: <1308298294.13535.3.camel@phoenix> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1526 Lines: 39 Fix below build error: CC drivers/mtd/onenand/samsung.o drivers/mtd/onenand/samsung.c: In function 's3c_onenand_probe': drivers/mtd/onenand/samsung.c:1017: error: 'info' undeclared (first use in this function) drivers/mtd/onenand/samsung.c:1017: error: (Each undeclared identifier is reported only once drivers/mtd/onenand/samsung.c:1017: error: for each function it appears in.) make[3]: *** [drivers/mtd/onenand/samsung.o] Error 1 make[2]: *** [drivers/mtd/onenand] Error 2 make[1]: *** [drivers/mtd] Error 2 make: *** [drivers] Error 2 Signed-off-by: Axel Lin --- drivers/mtd/onenand/samsung.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/onenand/samsung.c b/drivers/mtd/onenand/samsung.c index 597dffc..d324074 100644 --- a/drivers/mtd/onenand/samsung.c +++ b/drivers/mtd/onenand/samsung.c @@ -1014,7 +1014,7 @@ static int s3c_onenand_probe(struct platform_device *pdev) if (s3c_read_reg(MEM_CFG_OFFSET) & ONENAND_SYS_CFG1_SYNC_READ) dev_info(&onenand->pdev->dev, "OneNAND Sync. Burst Read enabled\n"); - err = mtd_device_parse_register(&info->mtd, NULL, 0, + err = mtd_device_parse_register(onenand->mtd, NULL, 0, pdata ? pdata->parts : NULL, pdata ? pdata->nr_parts : 0); -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/