~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to ubuntu/rtl8192se/rtllib/autoload.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Cryptographic API.
3
 
 *
4
 
 * Algorithm autoloader.
5
 
 *
6
 
 * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
7
 
 *
8
 
 * This program is free software; you can redistribute it and/or modify it
9
 
 * under the terms of the GNU General Public License as published by the Free
10
 
 * Software Foundation; either version 2 of the License, or (at your option) 
11
 
 * any later version.
12
 
 *
13
 
 */
14
 
#include "kmap_types.h"
15
 
 
16
 
#include <linux/kernel.h>
17
 
#include "rtl_crypto.h"
18
 
#include <linux/string.h>
19
 
#include <linux/kmod.h>
20
 
#include "internal.h"
21
 
 
22
 
#ifdef CONFIG_KMOD
23
 
/*
24
 
 * A far more intelligent version of this is planned.  For now, just
25
 
 * try an exact match on the name of the algorithm.
26
 
 */
27
 
void crypto_alg_autoload(const char *name)
28
 
{
29
 
        request_module(name);
30
 
}
31
 
 
32
 
struct crypto_alg *crypto_alg_mod_lookup(const char *name)
33
 
{
34
 
        struct crypto_alg *alg = crypto_alg_lookup(name);
35
 
        if (alg == NULL) {
36
 
                crypto_alg_autoload(name);
37
 
                alg = crypto_alg_lookup(name);
38
 
        }
39
 
        return alg;
40
 
}
41
 
#endif