of/pcmcia: m8xx_pcmcia.c: Fix build failures

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>
This commit is contained in:
Anatolij Gustschin 2010-06-03 01:38:57 +02:00 committed by Grant Likely
parent 295bdd9c52
commit 2005ce3521
1 changed files with 2 additions and 2 deletions

View File

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