提交 efb753b8 编写于 作者: K Krzysztof Hałasa 提交者: Herbert Xu

crypto: ixp4xx - Fix kernel compile error

drivers/crypto/ixp4xx_crypto.c: In function 'ixp_module_init':
drivers/crypto/ixp4xx_crypto.c:1419:2: error: 'dev' undeclared (first use in this function)

Now builds. Not tested on real hw.
Signed-off-by: NKrzysztof Hałasa <khalasa@piap.pl>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 389a5390
...@@ -1410,14 +1410,12 @@ static const struct platform_device_info ixp_dev_info __initdata = { ...@@ -1410,14 +1410,12 @@ static const struct platform_device_info ixp_dev_info __initdata = {
static int __init ixp_module_init(void) static int __init ixp_module_init(void)
{ {
int num = ARRAY_SIZE(ixp4xx_algos); int num = ARRAY_SIZE(ixp4xx_algos);
int i, err ; int i, err;
pdev = platform_device_register_full(&ixp_dev_info); pdev = platform_device_register_full(&ixp_dev_info);
if (IS_ERR(pdev)) if (IS_ERR(pdev))
return PTR_ERR(pdev); return PTR_ERR(pdev);
dev = &pdev->dev;
spin_lock_init(&desc_lock); spin_lock_init(&desc_lock);
spin_lock_init(&emerg_lock); spin_lock_init(&emerg_lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册