* [PATCH] mtd: nand: mpc5121_nfc.c: Fix build failures
@ 2010-05-31 16:37 Anatolij Gustschin
2010-06-06 10:15 ` David Woodhouse
0 siblings, 1 reply; 3+ messages in thread
From: Anatolij Gustschin @ 2010-05-31 16:37 UTC (permalink / raw)
To: linux-kernel, linux-mtd; +Cc: Grant Likely, Anatolij Gustschin, David Woodhouse
Fixes build errors caused by the:
- OF device_node pointer being moved into struct device
- removal of the match_table field from struct of_platform_driver
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Grant Likely <grant.likely@secretlab.ca>
---
drivers/mtd/nand/mpc5121_nfc.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/mtd/nand/mpc5121_nfc.c b/drivers/mtd/nand/mpc5121_nfc.c
index 3d0867d..0a130dc 100644
--- a/drivers/mtd/nand/mpc5121_nfc.c
+++ b/drivers/mtd/nand/mpc5121_nfc.c
@@ -650,7 +650,7 @@ static void mpc5121_nfc_free(struct device *dev, struct mtd_info *mtd)
static int __devinit mpc5121_nfc_probe(struct of_device *op,
const struct of_device_id *match)
{
- struct device_node *rootnode, *dn = op->node;
+ struct device_node *rootnode, *dn = op->dev.of_node;
struct device *dev = &op->dev;
struct mpc5121_nfc_prv *prv;
struct resource res;
@@ -889,12 +889,12 @@ static struct of_device_id mpc5121_nfc_match[] __devinitdata = {
};
static struct of_platform_driver mpc5121_nfc_driver = {
- .match_table = mpc5121_nfc_match,
.probe = mpc5121_nfc_probe,
.remove = __devexit_p(mpc5121_nfc_remove),
.driver = {
- .name = DRV_NAME,
- .owner = THIS_MODULE,
+ .name = DRV_NAME,
+ .owner = THIS_MODULE,
+ .of_match_table = mpc5121_nfc_match,
},
};
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] mtd: nand: mpc5121_nfc.c: Fix build failures
2010-05-31 16:37 [PATCH] mtd: nand: mpc5121_nfc.c: Fix build failures Anatolij Gustschin
@ 2010-06-06 10:15 ` David Woodhouse
2010-06-07 7:09 ` Anatolij Gustschin
0 siblings, 1 reply; 3+ messages in thread
From: David Woodhouse @ 2010-06-06 10:15 UTC (permalink / raw)
To: Anatolij Gustschin; +Cc: Grant Likely, linux-mtd, linux-kernel
On Mon, 2010-05-31 at 18:37 +0200, Anatolij Gustschin wrote:
> Fixes build errors caused by the:
> - OF device_node pointer being moved into struct device
> - removal of the match_table field from struct of_platform_driver
>
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
> Cc: Grant Likely <grant.likely@secretlab.ca>
Um, this isn't applicable to 2.6.35, is it?
--
David Woodhouse Open Source Technology Centre
David.Woodhouse@intel.com Intel Corporation
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mtd: nand: mpc5121_nfc.c: Fix build failures
2010-06-06 10:15 ` David Woodhouse
@ 2010-06-07 7:09 ` Anatolij Gustschin
0 siblings, 0 replies; 3+ messages in thread
From: Anatolij Gustschin @ 2010-06-07 7:09 UTC (permalink / raw)
To: David Woodhouse; +Cc: Grant Likely, linux-mtd, linux-kernel
On Sun, 06 Jun 2010 11:15:08 +0100
David Woodhouse <dwmw2@infradead.org> wrote:
> On Mon, 2010-05-31 at 18:37 +0200, Anatolij Gustschin wrote:
> > Fixes build errors caused by the:
> > - OF device_node pointer being moved into struct device
> > - removal of the match_table field from struct of_platform_driver
> >
> > Signed-off-by: Anatolij Gustschin <agust@denx.de>
> > Cc: Grant Likely <grant.likely@secretlab.ca>
>
> Um, this isn't applicable to 2.6.35, is it?
Do you mean it isn't applicable to 2.6.34? This patch is needed and
applicable to 2.6.35-rc1. It has already been collected by Grant
and the breakage is fixed in 2.6.35-rc2.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-06-07 7:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-31 16:37 [PATCH] mtd: nand: mpc5121_nfc.c: Fix build failures Anatolij Gustschin
2010-06-06 10:15 ` David Woodhouse
2010-06-07 7:09 ` Anatolij Gustschin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).