aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-05-25 20:37:08 -0400
committerDavid S. Miller <davem@davemloft.net>2010-05-25 20:37:08 -0400
commitff6c7341e0bc486c3e1b369ab7f3b325b98600d3 (patch)
treedf78d2f28e62ae1e1cbdb2c54cee5a92c2e762bc
parentb1cdc4670b9508fcd47a15fbd12f70d269880b37 (diff)
n2_crypto: Fix build after of_device/of_platform_driver changes.
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/crypto/n2_core.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c
index 8566be832f51..1a5b1e709d67 100644
--- a/drivers/crypto/n2_core.c
+++ b/drivers/crypto/n2_core.c
@@ -1398,7 +1398,7 @@ static int find_devino_index(struct of_device *dev, struct spu_mdesc_info *ip,
1398 1398
1399 intr = ip->ino_table[i].intr; 1399 intr = ip->ino_table[i].intr;
1400 1400
1401 dev_intrs = of_get_property(dev->node, "interrupts", NULL); 1401 dev_intrs = of_get_property(dev->dev.of_node, "interrupts", NULL);
1402 if (!dev_intrs) 1402 if (!dev_intrs)
1403 return -ENODEV; 1403 return -ENODEV;
1404 1404
@@ -1574,7 +1574,7 @@ static int spu_mdesc_walk_arcs(struct mdesc_handle *mdesc,
1574 id = mdesc_get_property(mdesc, tgt, "id", NULL); 1574 id = mdesc_get_property(mdesc, tgt, "id", NULL);
1575 if (table[*id] != NULL) { 1575 if (table[*id] != NULL) {
1576 dev_err(&dev->dev, "%s: SPU cpu slot already set.\n", 1576 dev_err(&dev->dev, "%s: SPU cpu slot already set.\n",
1577 dev->node->full_name); 1577 dev->dev.of_node->full_name);
1578 return -EINVAL; 1578 return -EINVAL;
1579 } 1579 }
1580 cpu_set(*id, p->sharing); 1580 cpu_set(*id, p->sharing);
@@ -1595,7 +1595,7 @@ static int handle_exec_unit(struct spu_mdesc_info *ip, struct list_head *list,
1595 p = kzalloc(sizeof(struct spu_queue), GFP_KERNEL); 1595 p = kzalloc(sizeof(struct spu_queue), GFP_KERNEL);
1596 if (!p) { 1596 if (!p) {
1597 dev_err(&dev->dev, "%s: Could not allocate SPU queue.\n", 1597 dev_err(&dev->dev, "%s: Could not allocate SPU queue.\n",
1598 dev->node->full_name); 1598 dev->dev.of_node->full_name);
1599 return -ENOMEM; 1599 return -ENOMEM;
1600 } 1600 }
1601 1601
@@ -1684,7 +1684,7 @@ static int __devinit grab_mdesc_irq_props(struct mdesc_handle *mdesc,
1684 const unsigned int *reg; 1684 const unsigned int *reg;
1685 u64 node; 1685 u64 node;
1686 1686
1687 reg = of_get_property(dev->node, "reg", NULL); 1687 reg = of_get_property(dev->dev.of_node, "reg", NULL);
1688 if (!reg) 1688 if (!reg)
1689 return -ENODEV; 1689 return -ENODEV;
1690 1690
@@ -1836,7 +1836,7 @@ static int __devinit n2_crypto_probe(struct of_device *dev,
1836 1836
1837 n2_spu_driver_version(); 1837 n2_spu_driver_version();
1838 1838
1839 full_name = dev->node->full_name; 1839 full_name = dev->dev.of_node->full_name;
1840 pr_info("Found N2CP at %s\n", full_name); 1840 pr_info("Found N2CP at %s\n", full_name);
1841 1841
1842 np = alloc_n2cp(); 1842 np = alloc_n2cp();
@@ -1948,7 +1948,7 @@ static int __devinit n2_mau_probe(struct of_device *dev,
1948 1948
1949 n2_spu_driver_version(); 1949 n2_spu_driver_version();
1950 1950
1951 full_name = dev->node->full_name; 1951 full_name = dev->dev.of_node->full_name;
1952 pr_info("Found NCP at %s\n", full_name); 1952 pr_info("Found NCP at %s\n", full_name);
1953 1953
1954 mp = alloc_ncp(); 1954 mp = alloc_ncp();
@@ -2034,8 +2034,11 @@ static struct of_device_id n2_crypto_match[] = {
2034MODULE_DEVICE_TABLE(of, n2_crypto_match); 2034MODULE_DEVICE_TABLE(of, n2_crypto_match);
2035 2035
2036static struct of_platform_driver n2_crypto_driver = { 2036static struct of_platform_driver n2_crypto_driver = {
2037 .name = "n2cp", 2037 .driver = {
2038 .match_table = n2_crypto_match, 2038 .name = "n2cp",
2039 .owner = THIS_MODULE,
2040 .of_match_table = n2_crypto_match,
2041 },
2039 .probe = n2_crypto_probe, 2042 .probe = n2_crypto_probe,
2040 .remove = __devexit_p(n2_crypto_remove), 2043 .remove = __devexit_p(n2_crypto_remove),
2041}; 2044};
@@ -2055,8 +2058,11 @@ static struct of_device_id n2_mau_match[] = {
2055MODULE_DEVICE_TABLE(of, n2_mau_match); 2058MODULE_DEVICE_TABLE(of, n2_mau_match);
2056 2059
2057static struct of_platform_driver n2_mau_driver = { 2060static struct of_platform_driver n2_mau_driver = {
2058 .name = "ncp", 2061 .driver = {
2059 .match_table = n2_mau_match, 2062 .name = "ncp",
2063 .owner = THIS_MODULE,
2064 .of_match_table = n2_mau_match,
2065 },
2060 .probe = n2_mau_probe, 2066 .probe = n2_mau_probe,
2061 .remove = __devexit_p(n2_mau_remove), 2067 .remove = __devexit_p(n2_mau_remove),
2062}; 2068};