mtd: nand: mpc5121_nfc.c: Fix build failures
Subsystems (2)
PATCH 1/1 mtd: nand: mpc5121_nfc.c: Fix build failures
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
--- drivers/mtd/nand/mpc5121_nfc.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/mtd/nand/mpc5121_nfc.c +4 -4
@@ -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, }, };
Signature · 1 line
1.7.0.4
Quoted 6 lines · Anatolij Gustschin
Fixes build errors caused by the:
- OFdevice_nodepointer being moved into struct device
- removal of thematch_tablefield from structof_platform_driverSigned-off-by Anatolij Gustschin <[email protected]>Cc Grant Likely <[email protected]>
Um, this isn't applicable to 2.6.35, is it?
Signature · 2 lines
David Woodhouse Open Source Technology Centre [email protected] Intel Corporation
Quoted 9 lines · On Sun, 06 Jun 2010 11:15:08 +0100 David Woodhouse <[email protected]> wrote:
Quoted 6 lines · Anatolij Gustschin
Fixes build errors caused by the:
- OFdevice_nodepointer being moved into struct device
- removal of thematch_tablefield from structof_platform_driverSigned-off-by Anatolij Gustschin <[email protected]>Cc Grant Likely <[email protected]>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.