[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <BANLkTi=MiT1PrcJMdAfegTg74BQYNHC2fw@mail.gmail.com>
Date: Fri, 17 Jun 2011 10:10:42 -0700
From: Brian Norris <computersforpeace@...il.com>
To: Axel Lin <axel.lin@...il.com>
Cc: linux-kernel@...r.kernel.org,
Dmitry Eremin-Solenikov <dbaryshkov@...il.com>,
Artem Bityutskiy <Artem.Bityutskiy@...ia.com>,
Kyungmin Park <kyungmin.park@...sung.com>,
David Woodhouse <dwmw2@...radead.org>,
linux-mtd@...ts.infradead.org
Subject: Re: [PATCH 2/2] mtd: onenand/samsung.c: fix build error
Hi,
On Fri, Jun 17, 2011 at 1:11 AM, Axel Lin <axel.lin@...il.com> wrote:
> - 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);
Wouldn't it be just the same (and shorter) to use "mtd" instead of
onenand->mtd? Like:
err = mtd_device_parse_register(mtd, NULL, 0,
pdata ? pdata->parts : NULL,
pdata ? pdata->nr_parts : 0);
Brian
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists