diff options
author | Holger Dengler <hd@linux.vnet.ibm.com> | 2012-03-11 11:59:36 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-03-11 11:59:29 -0400 |
commit | 35424f636e9b6e79a362162aaac96b12cc8e8f69 (patch) | |
tree | f5fe1995d37cab9ffb2e2820c1522dff81ac81f3 /drivers/s390/crypto | |
parent | ddadfa8d279e17b5afe8aa76846363c940df0435 (diff) |
[S390] Remove monolithic build option for zcrypt driver.
Remove the option to build a single module z90crypt that contains
ap bus, request router and card drivers.
Signed-off-by: Holger Dengler <hd@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/crypto')
-rw-r--r-- | drivers/s390/crypto/Makefile | 10 | ||||
-rw-r--r-- | drivers/s390/crypto/ap_bus.c | 2 | ||||
-rw-r--r-- | drivers/s390/crypto/zcrypt_api.c | 2 | ||||
-rw-r--r-- | drivers/s390/crypto/zcrypt_cex2a.c | 4 | ||||
-rw-r--r-- | drivers/s390/crypto/zcrypt_mono.c | 100 | ||||
-rw-r--r-- | drivers/s390/crypto/zcrypt_pcica.c | 4 | ||||
-rw-r--r-- | drivers/s390/crypto/zcrypt_pcicc.c | 4 | ||||
-rw-r--r-- | drivers/s390/crypto/zcrypt_pcixcc.c | 4 |
8 files changed, 0 insertions, 130 deletions
diff --git a/drivers/s390/crypto/Makefile b/drivers/s390/crypto/Makefile index f0a12d2eb780..af3c7f16ea88 100644 --- a/drivers/s390/crypto/Makefile +++ b/drivers/s390/crypto/Makefile | |||
@@ -2,16 +2,6 @@ | |||
2 | # S/390 crypto devices | 2 | # S/390 crypto devices |
3 | # | 3 | # |
4 | 4 | ||
5 | ifdef CONFIG_ZCRYPT_MONOLITHIC | ||
6 | |||
7 | z90crypt-objs := zcrypt_mono.o ap_bus.o zcrypt_api.o \ | ||
8 | zcrypt_pcica.o zcrypt_pcicc.o zcrypt_pcixcc.o zcrypt_cex2a.o | ||
9 | obj-$(CONFIG_ZCRYPT) += z90crypt.o | ||
10 | |||
11 | else | ||
12 | |||
13 | ap-objs := ap_bus.o | 5 | ap-objs := ap_bus.o |
14 | obj-$(CONFIG_ZCRYPT) += ap.o zcrypt_api.o zcrypt_pcicc.o zcrypt_pcixcc.o | 6 | obj-$(CONFIG_ZCRYPT) += ap.o zcrypt_api.o zcrypt_pcicc.o zcrypt_pcixcc.o |
15 | obj-$(CONFIG_ZCRYPT) += zcrypt_pcica.o zcrypt_cex2a.o | 7 | obj-$(CONFIG_ZCRYPT) += zcrypt_pcica.o zcrypt_cex2a.o |
16 | |||
17 | endif | ||
diff --git a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c index 96bbe9d12a79..12ae1817b172 100644 --- a/drivers/s390/crypto/ap_bus.c +++ b/drivers/s390/crypto/ap_bus.c | |||
@@ -1862,7 +1862,5 @@ void ap_module_exit(void) | |||
1862 | } | 1862 | } |
1863 | } | 1863 | } |
1864 | 1864 | ||
1865 | #ifndef CONFIG_ZCRYPT_MONOLITHIC | ||
1866 | module_init(ap_module_init); | 1865 | module_init(ap_module_init); |
1867 | module_exit(ap_module_exit); | 1866 | module_exit(ap_module_exit); |
1868 | #endif | ||
diff --git a/drivers/s390/crypto/zcrypt_api.c b/drivers/s390/crypto/zcrypt_api.c index 88ad33ed5d38..88523208d47d 100644 --- a/drivers/s390/crypto/zcrypt_api.c +++ b/drivers/s390/crypto/zcrypt_api.c | |||
@@ -1220,7 +1220,5 @@ void zcrypt_api_exit(void) | |||
1220 | misc_deregister(&zcrypt_misc_device); | 1220 | misc_deregister(&zcrypt_misc_device); |
1221 | } | 1221 | } |
1222 | 1222 | ||
1223 | #ifndef CONFIG_ZCRYPT_MONOLITHIC | ||
1224 | module_init(zcrypt_api_init); | 1223 | module_init(zcrypt_api_init); |
1225 | module_exit(zcrypt_api_exit); | 1224 | module_exit(zcrypt_api_exit); |
1226 | #endif | ||
diff --git a/drivers/s390/crypto/zcrypt_cex2a.c b/drivers/s390/crypto/zcrypt_cex2a.c index da171b5f3996..084286728166 100644 --- a/drivers/s390/crypto/zcrypt_cex2a.c +++ b/drivers/s390/crypto/zcrypt_cex2a.c | |||
@@ -63,13 +63,11 @@ static struct ap_device_id zcrypt_cex2a_ids[] = { | |||
63 | { /* end of list */ }, | 63 | { /* end of list */ }, |
64 | }; | 64 | }; |
65 | 65 | ||
66 | #ifndef CONFIG_ZCRYPT_MONOLITHIC | ||
67 | MODULE_DEVICE_TABLE(ap, zcrypt_cex2a_ids); | 66 | MODULE_DEVICE_TABLE(ap, zcrypt_cex2a_ids); |
68 | MODULE_AUTHOR("IBM Corporation"); | 67 | MODULE_AUTHOR("IBM Corporation"); |
69 | MODULE_DESCRIPTION("CEX2A Cryptographic Coprocessor device driver, " | 68 | MODULE_DESCRIPTION("CEX2A Cryptographic Coprocessor device driver, " |
70 | "Copyright 2001, 2006 IBM Corporation"); | 69 | "Copyright 2001, 2006 IBM Corporation"); |
71 | MODULE_LICENSE("GPL"); | 70 | MODULE_LICENSE("GPL"); |
72 | #endif | ||
73 | 71 | ||
74 | static int zcrypt_cex2a_probe(struct ap_device *ap_dev); | 72 | static int zcrypt_cex2a_probe(struct ap_device *ap_dev); |
75 | static void zcrypt_cex2a_remove(struct ap_device *ap_dev); | 73 | static void zcrypt_cex2a_remove(struct ap_device *ap_dev); |
@@ -496,7 +494,5 @@ void __exit zcrypt_cex2a_exit(void) | |||
496 | ap_driver_unregister(&zcrypt_cex2a_driver); | 494 | ap_driver_unregister(&zcrypt_cex2a_driver); |
497 | } | 495 | } |
498 | 496 | ||
499 | #ifndef CONFIG_ZCRYPT_MONOLITHIC | ||
500 | module_init(zcrypt_cex2a_init); | 497 | module_init(zcrypt_cex2a_init); |
501 | module_exit(zcrypt_cex2a_exit); | 498 | module_exit(zcrypt_cex2a_exit); |
502 | #endif | ||
diff --git a/drivers/s390/crypto/zcrypt_mono.c b/drivers/s390/crypto/zcrypt_mono.c deleted file mode 100644 index eb313c3fb2d1..000000000000 --- a/drivers/s390/crypto/zcrypt_mono.c +++ /dev/null | |||
@@ -1,100 +0,0 @@ | |||
1 | /* | ||
2 | * linux/drivers/s390/crypto/zcrypt_mono.c | ||
3 | * | ||
4 | * zcrypt 2.1.0 | ||
5 | * | ||
6 | * Copyright (C) 2001, 2006 IBM Corporation | ||
7 | * Author(s): Robert Burroughs | ||
8 | * Eric Rossman (edrossma@us.ibm.com) | ||
9 | * | ||
10 | * Hotplug & misc device support: Jochen Roehrig (roehrig@de.ibm.com) | ||
11 | * Major cleanup & driver split: Martin Schwidefsky <schwidefsky@de.ibm.com> | ||
12 | * | ||
13 | * This program is free software; you can redistribute it and/or modify | ||
14 | * it under the terms of the GNU General Public License as published by | ||
15 | * the Free Software Foundation; either version 2, or (at your option) | ||
16 | * any later version. | ||
17 | * | ||
18 | * This program is distributed in the hope that it will be useful, | ||
19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
21 | * GNU General Public License for more details. | ||
22 | * | ||
23 | * You should have received a copy of the GNU General Public License | ||
24 | * along with this program; if not, write to the Free Software | ||
25 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
26 | */ | ||
27 | |||
28 | #include <linux/module.h> | ||
29 | #include <linux/init.h> | ||
30 | #include <linux/interrupt.h> | ||
31 | #include <linux/miscdevice.h> | ||
32 | #include <linux/fs.h> | ||
33 | #include <linux/proc_fs.h> | ||
34 | #include <linux/compat.h> | ||
35 | #include <linux/atomic.h> | ||
36 | #include <asm/uaccess.h> | ||
37 | |||
38 | #include "ap_bus.h" | ||
39 | #include "zcrypt_api.h" | ||
40 | #include "zcrypt_pcica.h" | ||
41 | #include "zcrypt_pcicc.h" | ||
42 | #include "zcrypt_pcixcc.h" | ||
43 | #include "zcrypt_cex2a.h" | ||
44 | |||
45 | /** | ||
46 | * The module initialization code. | ||
47 | */ | ||
48 | static int __init zcrypt_init(void) | ||
49 | { | ||
50 | int rc; | ||
51 | |||
52 | rc = ap_module_init(); | ||
53 | if (rc) | ||
54 | goto out; | ||
55 | rc = zcrypt_api_init(); | ||
56 | if (rc) | ||
57 | goto out_ap; | ||
58 | rc = zcrypt_pcica_init(); | ||
59 | if (rc) | ||
60 | goto out_api; | ||
61 | rc = zcrypt_pcicc_init(); | ||
62 | if (rc) | ||
63 | goto out_pcica; | ||
64 | rc = zcrypt_pcixcc_init(); | ||
65 | if (rc) | ||
66 | goto out_pcicc; | ||
67 | rc = zcrypt_cex2a_init(); | ||
68 | if (rc) | ||
69 | goto out_pcixcc; | ||
70 | return 0; | ||
71 | |||
72 | out_pcixcc: | ||
73 | zcrypt_pcixcc_exit(); | ||
74 | out_pcicc: | ||
75 | zcrypt_pcicc_exit(); | ||
76 | out_pcica: | ||
77 | zcrypt_pcica_exit(); | ||
78 | out_api: | ||
79 | zcrypt_api_exit(); | ||
80 | out_ap: | ||
81 | ap_module_exit(); | ||
82 | out: | ||
83 | return rc; | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * The module termination code. | ||
88 | */ | ||
89 | static void __exit zcrypt_exit(void) | ||
90 | { | ||
91 | zcrypt_cex2a_exit(); | ||
92 | zcrypt_pcixcc_exit(); | ||
93 | zcrypt_pcicc_exit(); | ||
94 | zcrypt_pcica_exit(); | ||
95 | zcrypt_api_exit(); | ||
96 | ap_module_exit(); | ||
97 | } | ||
98 | |||
99 | module_init(zcrypt_init); | ||
100 | module_exit(zcrypt_exit); | ||
diff --git a/drivers/s390/crypto/zcrypt_pcica.c b/drivers/s390/crypto/zcrypt_pcica.c index d84816f144df..0effca925451 100644 --- a/drivers/s390/crypto/zcrypt_pcica.c +++ b/drivers/s390/crypto/zcrypt_pcica.c | |||
@@ -53,13 +53,11 @@ static struct ap_device_id zcrypt_pcica_ids[] = { | |||
53 | { /* end of list */ }, | 53 | { /* end of list */ }, |
54 | }; | 54 | }; |
55 | 55 | ||
56 | #ifndef CONFIG_ZCRYPT_MONOLITHIC | ||
57 | MODULE_DEVICE_TABLE(ap, zcrypt_pcica_ids); | 56 | MODULE_DEVICE_TABLE(ap, zcrypt_pcica_ids); |
58 | MODULE_AUTHOR("IBM Corporation"); | 57 | MODULE_AUTHOR("IBM Corporation"); |
59 | MODULE_DESCRIPTION("PCICA Cryptographic Coprocessor device driver, " | 58 | MODULE_DESCRIPTION("PCICA Cryptographic Coprocessor device driver, " |
60 | "Copyright 2001, 2006 IBM Corporation"); | 59 | "Copyright 2001, 2006 IBM Corporation"); |
61 | MODULE_LICENSE("GPL"); | 60 | MODULE_LICENSE("GPL"); |
62 | #endif | ||
63 | 61 | ||
64 | static int zcrypt_pcica_probe(struct ap_device *ap_dev); | 62 | static int zcrypt_pcica_probe(struct ap_device *ap_dev); |
65 | static void zcrypt_pcica_remove(struct ap_device *ap_dev); | 63 | static void zcrypt_pcica_remove(struct ap_device *ap_dev); |
@@ -408,7 +406,5 @@ void zcrypt_pcica_exit(void) | |||
408 | ap_driver_unregister(&zcrypt_pcica_driver); | 406 | ap_driver_unregister(&zcrypt_pcica_driver); |
409 | } | 407 | } |
410 | 408 | ||
411 | #ifndef CONFIG_ZCRYPT_MONOLITHIC | ||
412 | module_init(zcrypt_pcica_init); | 409 | module_init(zcrypt_pcica_init); |
413 | module_exit(zcrypt_pcica_exit); | 410 | module_exit(zcrypt_pcica_exit); |
414 | #endif | ||
diff --git a/drivers/s390/crypto/zcrypt_pcicc.c b/drivers/s390/crypto/zcrypt_pcicc.c index bdbdbe192993..f9523c0cc8d2 100644 --- a/drivers/s390/crypto/zcrypt_pcicc.c +++ b/drivers/s390/crypto/zcrypt_pcicc.c | |||
@@ -65,13 +65,11 @@ static struct ap_device_id zcrypt_pcicc_ids[] = { | |||
65 | { /* end of list */ }, | 65 | { /* end of list */ }, |
66 | }; | 66 | }; |
67 | 67 | ||
68 | #ifndef CONFIG_ZCRYPT_MONOLITHIC | ||
69 | MODULE_DEVICE_TABLE(ap, zcrypt_pcicc_ids); | 68 | MODULE_DEVICE_TABLE(ap, zcrypt_pcicc_ids); |
70 | MODULE_AUTHOR("IBM Corporation"); | 69 | MODULE_AUTHOR("IBM Corporation"); |
71 | MODULE_DESCRIPTION("PCICC Cryptographic Coprocessor device driver, " | 70 | MODULE_DESCRIPTION("PCICC Cryptographic Coprocessor device driver, " |
72 | "Copyright 2001, 2006 IBM Corporation"); | 71 | "Copyright 2001, 2006 IBM Corporation"); |
73 | MODULE_LICENSE("GPL"); | 72 | MODULE_LICENSE("GPL"); |
74 | #endif | ||
75 | 73 | ||
76 | static int zcrypt_pcicc_probe(struct ap_device *ap_dev); | 74 | static int zcrypt_pcicc_probe(struct ap_device *ap_dev); |
77 | static void zcrypt_pcicc_remove(struct ap_device *ap_dev); | 75 | static void zcrypt_pcicc_remove(struct ap_device *ap_dev); |
@@ -614,7 +612,5 @@ void zcrypt_pcicc_exit(void) | |||
614 | ap_driver_unregister(&zcrypt_pcicc_driver); | 612 | ap_driver_unregister(&zcrypt_pcicc_driver); |
615 | } | 613 | } |
616 | 614 | ||
617 | #ifndef CONFIG_ZCRYPT_MONOLITHIC | ||
618 | module_init(zcrypt_pcicc_init); | 615 | module_init(zcrypt_pcicc_init); |
619 | module_exit(zcrypt_pcicc_exit); | 616 | module_exit(zcrypt_pcicc_exit); |
620 | #endif | ||
diff --git a/drivers/s390/crypto/zcrypt_pcixcc.c b/drivers/s390/crypto/zcrypt_pcixcc.c index 077b7d109fde..cf1cbd4747f4 100644 --- a/drivers/s390/crypto/zcrypt_pcixcc.c +++ b/drivers/s390/crypto/zcrypt_pcixcc.c | |||
@@ -75,13 +75,11 @@ static struct ap_device_id zcrypt_pcixcc_ids[] = { | |||
75 | { /* end of list */ }, | 75 | { /* end of list */ }, |
76 | }; | 76 | }; |
77 | 77 | ||
78 | #ifndef CONFIG_ZCRYPT_MONOLITHIC | ||
79 | MODULE_DEVICE_TABLE(ap, zcrypt_pcixcc_ids); | 78 | MODULE_DEVICE_TABLE(ap, zcrypt_pcixcc_ids); |
80 | MODULE_AUTHOR("IBM Corporation"); | 79 | MODULE_AUTHOR("IBM Corporation"); |
81 | MODULE_DESCRIPTION("PCIXCC Cryptographic Coprocessor device driver, " | 80 | MODULE_DESCRIPTION("PCIXCC Cryptographic Coprocessor device driver, " |
82 | "Copyright 2001, 2006 IBM Corporation"); | 81 | "Copyright 2001, 2006 IBM Corporation"); |
83 | MODULE_LICENSE("GPL"); | 82 | MODULE_LICENSE("GPL"); |
84 | #endif | ||
85 | 83 | ||
86 | static int zcrypt_pcixcc_probe(struct ap_device *ap_dev); | 84 | static int zcrypt_pcixcc_probe(struct ap_device *ap_dev); |
87 | static void zcrypt_pcixcc_remove(struct ap_device *ap_dev); | 85 | static void zcrypt_pcixcc_remove(struct ap_device *ap_dev); |
@@ -1121,7 +1119,5 @@ void zcrypt_pcixcc_exit(void) | |||
1121 | ap_driver_unregister(&zcrypt_pcixcc_driver); | 1119 | ap_driver_unregister(&zcrypt_pcixcc_driver); |
1122 | } | 1120 | } |
1123 | 1121 | ||
1124 | #ifndef CONFIG_ZCRYPT_MONOLITHIC | ||
1125 | module_init(zcrypt_pcixcc_init); | 1122 | module_init(zcrypt_pcixcc_init); |
1126 | module_exit(zcrypt_pcixcc_exit); | 1123 | module_exit(zcrypt_pcixcc_exit); |
1127 | #endif | ||