From: Krzysztof Hałasa Date: Tue, 31 Dec 2013 10:51:16 +0000 (+0100) Subject: crypto: ixp4xx - Fix kernel compile error X-Git-Tag: firefly_0821_release~176^2~4708^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=efb753b8e0136fe66b507e8e1e42b5a2df7ba44d;p=firefly-linux-kernel-4.4.55.git 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: Krzysztof Hałasa Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/ixp4xx_crypto.c b/drivers/crypto/ixp4xx_crypto.c index 9dd6e01eac33..f757a0f428bd 100644 --- a/drivers/crypto/ixp4xx_crypto.c +++ b/drivers/crypto/ixp4xx_crypto.c @@ -1410,14 +1410,12 @@ static const struct platform_device_info ixp_dev_info __initdata = { static int __init ixp_module_init(void) { int num = ARRAY_SIZE(ixp4xx_algos); - int i, err ; + int i, err; pdev = platform_device_register_full(&ixp_dev_info); if (IS_ERR(pdev)) return PTR_ERR(pdev); - dev = &pdev->dev; - spin_lock_init(&desc_lock); spin_lock_init(&emerg_lock);