X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fcrypto%2Fpadlock-aes.c;h=29b9469f83789eb42ee8c5d47ca7901d85fb70af;hb=70c9f18ca8f3652c7dcf715e9f0d41c399fe130d;hp=db33d300aa232a4dec0c4234b2ab768a5dfc7023;hpb=dc93275150da9542f500fbd3d0515eecfefba7f6;p=karo-tx-linux.git diff --git a/drivers/crypto/padlock-aes.c b/drivers/crypto/padlock-aes.c index db33d300aa23..29b9469f8378 100644 --- a/drivers/crypto/padlock-aes.c +++ b/drivers/crypto/padlock-aes.c @@ -508,10 +508,8 @@ static int __init padlock_init(void) int ret; struct cpuinfo_x86 *c = &cpu_data(0); - if (!cpu_has_xcrypt) { - printk(KERN_NOTICE PFX "VIA PadLock not detected.\n"); + if (!cpu_has_xcrypt) return -ENODEV; - } if (!cpu_has_xcrypt_enabled) { printk(KERN_NOTICE PFX "VIA PadLock detected, but not enabled. Hmm, strange...\n");