n2_crypto: Fix build after of_device/of_platform_driver changes.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b1cdc4670b
commit
ff6c7341e0
1 changed files with 16 additions and 10 deletions
|
@ -1398,7 +1398,7 @@ static int find_devino_index(struct of_device *dev, struct spu_mdesc_info *ip,
|
||||||
|
|
||||||
intr = ip->ino_table[i].intr;
|
intr = ip->ino_table[i].intr;
|
||||||
|
|
||||||
dev_intrs = of_get_property(dev->node, "interrupts", NULL);
|
dev_intrs = of_get_property(dev->dev.of_node, "interrupts", NULL);
|
||||||
if (!dev_intrs)
|
if (!dev_intrs)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
|
@ -1574,7 +1574,7 @@ static int spu_mdesc_walk_arcs(struct mdesc_handle *mdesc,
|
||||||
id = mdesc_get_property(mdesc, tgt, "id", NULL);
|
id = mdesc_get_property(mdesc, tgt, "id", NULL);
|
||||||
if (table[*id] != NULL) {
|
if (table[*id] != NULL) {
|
||||||
dev_err(&dev->dev, "%s: SPU cpu slot already set.\n",
|
dev_err(&dev->dev, "%s: SPU cpu slot already set.\n",
|
||||||
dev->node->full_name);
|
dev->dev.of_node->full_name);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
cpu_set(*id, p->sharing);
|
cpu_set(*id, p->sharing);
|
||||||
|
@ -1595,7 +1595,7 @@ static int handle_exec_unit(struct spu_mdesc_info *ip, struct list_head *list,
|
||||||
p = kzalloc(sizeof(struct spu_queue), GFP_KERNEL);
|
p = kzalloc(sizeof(struct spu_queue), GFP_KERNEL);
|
||||||
if (!p) {
|
if (!p) {
|
||||||
dev_err(&dev->dev, "%s: Could not allocate SPU queue.\n",
|
dev_err(&dev->dev, "%s: Could not allocate SPU queue.\n",
|
||||||
dev->node->full_name);
|
dev->dev.of_node->full_name);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1684,7 +1684,7 @@ static int __devinit grab_mdesc_irq_props(struct mdesc_handle *mdesc,
|
||||||
const unsigned int *reg;
|
const unsigned int *reg;
|
||||||
u64 node;
|
u64 node;
|
||||||
|
|
||||||
reg = of_get_property(dev->node, "reg", NULL);
|
reg = of_get_property(dev->dev.of_node, "reg", NULL);
|
||||||
if (!reg)
|
if (!reg)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
|
@ -1836,7 +1836,7 @@ static int __devinit n2_crypto_probe(struct of_device *dev,
|
||||||
|
|
||||||
n2_spu_driver_version();
|
n2_spu_driver_version();
|
||||||
|
|
||||||
full_name = dev->node->full_name;
|
full_name = dev->dev.of_node->full_name;
|
||||||
pr_info("Found N2CP at %s\n", full_name);
|
pr_info("Found N2CP at %s\n", full_name);
|
||||||
|
|
||||||
np = alloc_n2cp();
|
np = alloc_n2cp();
|
||||||
|
@ -1948,7 +1948,7 @@ static int __devinit n2_mau_probe(struct of_device *dev,
|
||||||
|
|
||||||
n2_spu_driver_version();
|
n2_spu_driver_version();
|
||||||
|
|
||||||
full_name = dev->node->full_name;
|
full_name = dev->dev.of_node->full_name;
|
||||||
pr_info("Found NCP at %s\n", full_name);
|
pr_info("Found NCP at %s\n", full_name);
|
||||||
|
|
||||||
mp = alloc_ncp();
|
mp = alloc_ncp();
|
||||||
|
@ -2034,8 +2034,11 @@ static struct of_device_id n2_crypto_match[] = {
|
||||||
MODULE_DEVICE_TABLE(of, n2_crypto_match);
|
MODULE_DEVICE_TABLE(of, n2_crypto_match);
|
||||||
|
|
||||||
static struct of_platform_driver n2_crypto_driver = {
|
static struct of_platform_driver n2_crypto_driver = {
|
||||||
.name = "n2cp",
|
.driver = {
|
||||||
.match_table = n2_crypto_match,
|
.name = "n2cp",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = n2_crypto_match,
|
||||||
|
},
|
||||||
.probe = n2_crypto_probe,
|
.probe = n2_crypto_probe,
|
||||||
.remove = __devexit_p(n2_crypto_remove),
|
.remove = __devexit_p(n2_crypto_remove),
|
||||||
};
|
};
|
||||||
|
@ -2055,8 +2058,11 @@ static struct of_device_id n2_mau_match[] = {
|
||||||
MODULE_DEVICE_TABLE(of, n2_mau_match);
|
MODULE_DEVICE_TABLE(of, n2_mau_match);
|
||||||
|
|
||||||
static struct of_platform_driver n2_mau_driver = {
|
static struct of_platform_driver n2_mau_driver = {
|
||||||
.name = "ncp",
|
.driver = {
|
||||||
.match_table = n2_mau_match,
|
.name = "ncp",
|
||||||
|
.owner = THIS_MODULE,
|
||||||
|
.of_match_table = n2_mau_match,
|
||||||
|
},
|
||||||
.probe = n2_mau_probe,
|
.probe = n2_mau_probe,
|
||||||
.remove = __devexit_p(n2_mau_remove),
|
.remove = __devexit_p(n2_mau_remove),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue