diff options
author | Alan Cox <alan@linux.intel.com> | 2012-02-14 02:37:20 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-14 02:42:02 +0400 |
commit | ebb3bf50183f41327341da6f1e82b1fe1c058c12 (patch) | |
tree | 7a8b061d768f584c39429f575ad7ca3200628f4f /drivers/staging/sep/sep_main.c | |
parent | 89ae7d709357df3a60e81c57613859d91d093ace (diff) | |
download | linux-ebb3bf50183f41327341da6f1e82b1fe1c058c12.tar.xz |
staging: Fix SEP build
SEP build fails if crypto is not selected.
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sep/sep_main.c')
-rw-r--r-- | drivers/staging/sep/sep_main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/sep/sep_main.c b/drivers/staging/sep/sep_main.c index cf420f6bbe15..ad54c2e5c932 100644 --- a/drivers/staging/sep/sep_main.c +++ b/drivers/staging/sep/sep_main.c @@ -4245,7 +4245,7 @@ static int __devinit sep_probe(struct pci_dev *pdev, sep->power_save_setup = 1; #endif /* register kernel crypto driver */ -#if defined(CONFIG_CRYPTO) +#if defined(CONFIG_CRYPTO) || defined(CONFIG_CRYPTO_MODULE) error = sep_crypto_setup(); if (error) { dev_err(&sep->pdev->dev, "crypto setup failed\n"); @@ -4292,8 +4292,9 @@ static void sep_remove(struct pci_dev *pdev) misc_deregister(&sep->miscdev_sep); /* Unregister from kernel crypto */ +#if defined(CONFIG_CRYPTO) || defined(CONFIG_CRYPTO_MODULE) sep_crypto_takedown(); - +#endif /* Free the irq */ free_irq(sep->pdev->irq, sep); |