X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=crypto%2Fcryptomgr.c;h=2ebffb84f1d99552bc707162eeb26a9d08f4277f;hb=95006188cb1399f1358330503906e5891c129a10;hp=9b5b1560106899a480750ff464af9f1921efdb99;hpb=02b25fcff676125a88169c8a78d4c6dd647574ed;p=powerpc.git diff --git a/crypto/cryptomgr.c b/crypto/cryptomgr.c index 9b5b156010..2ebffb84f1 100644 --- a/crypto/cryptomgr.c +++ b/crypto/cryptomgr.c @@ -40,9 +40,10 @@ struct cryptomgr_param { char template[CRYPTO_MAX_ALG_NAME]; }; -static void cryptomgr_probe(void *data) +static void cryptomgr_probe(struct work_struct *work) { - struct cryptomgr_param *param = data; + struct cryptomgr_param *param = + container_of(work, struct cryptomgr_param, work); struct crypto_template *tmpl; struct crypto_instance *inst; int err; @@ -112,7 +113,7 @@ static int cryptomgr_schedule_probe(struct crypto_larval *larval) param->larval.type = larval->alg.cra_flags; param->larval.mask = larval->mask; - INIT_WORK(¶m->work, cryptomgr_probe, param); + INIT_WORK(¶m->work, cryptomgr_probe); schedule_work(¶m->work); return NOTIFY_STOP;