aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/talitos.c
diff options
context:
space:
mode:
authorLee Nipper <lee.nipper@freescale.com>2008-07-17 03:58:08 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2008-07-17 03:58:08 -0400
commit4aaf087846f9a1f1ec272393f5cd78f713e24f37 (patch)
treeffe02b01565ff7785bb7dd43f5651cfc10eb672d /drivers/crypto/talitos.c
parent33af79d12e0fa25545d49e86afc67ea8ad5f2f40 (diff)
crypto: talitos - Remove calls to of_node_put
Remove of_node_put calls since there is no corresponding of_node_get. This patch prevents an exception when talitos is loaded a 2nd time. This sequence: modprobe talitos; rmmod talitos; modprobe talitos causes this message: "WARNING: Bad of_node_put() on /soc8349@e0000000/crypto@30000". Signed-off-by: Lee Nipper <lee.nipper@freescale.com> Signed-off-by: Kim Phillips <kim.phillips@freescale.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/talitos.c')
-rw-r--r--drivers/crypto/talitos.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c
index b11943dadefd..01e6595014ee 100644
--- a/drivers/crypto/talitos.c
+++ b/drivers/crypto/talitos.c
@@ -1466,9 +1466,6 @@ static int talitos_probe(struct of_device *ofdev,
1466 goto err_out; 1466 goto err_out;
1467 } 1467 }
1468 1468
1469 of_node_put(np);
1470 np = NULL;
1471
1472 priv->head_lock = kmalloc(sizeof(spinlock_t) * priv->num_channels, 1469 priv->head_lock = kmalloc(sizeof(spinlock_t) * priv->num_channels,
1473 GFP_KERNEL); 1470 GFP_KERNEL);
1474 priv->tail_lock = kmalloc(sizeof(spinlock_t) * priv->num_channels, 1471 priv->tail_lock = kmalloc(sizeof(spinlock_t) * priv->num_channels,
@@ -1559,8 +1556,6 @@ static int talitos_probe(struct of_device *ofdev,
1559 1556
1560err_out: 1557err_out:
1561 talitos_remove(ofdev); 1558 talitos_remove(ofdev);
1562 if (np)
1563 of_node_put(np);
1564 1559
1565 return err; 1560 return err;
1566} 1561}