of/pcmcia: m8xx_pcmcia.c: Fix build failures
authorAnatolij Gustschin <agust@denx.de>
Wed, 2 Jun 2010 23:38:57 +0000 (01:38 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 3 Jun 2010 03:02:38 +0000 (21:02 -0600)
Fixes build errors caused by the:
- OF device_node pointer being moved into struct device
- typo in match_table field in the struct device_driver
  (which shoud be of_match_table)

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/pcmcia/m8xx_pcmcia.c

index 1a648b90b634890512ffb95560c1944d5d7a214a..25e5e30a18afdd6bafaae72e1c06314f42c9efb0 100644 (file)
@@ -1157,7 +1157,7 @@ static int __init m8xx_probe(struct of_device *ofdev,
        unsigned int i, m, hwirq;
        pcmconf8xx_t *pcmcia;
        int status;
-       struct device_node *np = ofdev->node;
+       struct device_node *np = ofdev->dev.of_node;
 
        pcmcia_info("%s\n", version);
 
@@ -1301,7 +1301,7 @@ static struct of_platform_driver m8xx_pcmcia_driver = {
        .driver = {
                .name = driver_name,
                .owner = THIS_MODULE,
-               .match_table = m8xx_pcmcia_match,
+               .of_match_table = m8xx_pcmcia_match,
        },
        .probe = m8xx_probe,
        .remove = m8xx_remove,