diff options
-rw-r--r-- | drivers/s390/net/lcs.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c index 083f787d260d..840dbf3d3416 100644 --- a/drivers/s390/net/lcs.c +++ b/drivers/s390/net/lcs.c | |||
@@ -39,6 +39,7 @@ | |||
39 | #include <linux/in.h> | 39 | #include <linux/in.h> |
40 | #include <linux/igmp.h> | 40 | #include <linux/igmp.h> |
41 | #include <linux/delay.h> | 41 | #include <linux/delay.h> |
42 | #include <linux/kthread.h> | ||
42 | #include <net/arp.h> | 43 | #include <net/arp.h> |
43 | #include <net/ip.h> | 44 | #include <net/ip.h> |
44 | 45 | ||
@@ -1259,7 +1260,6 @@ lcs_register_mc_addresses(void *data) | |||
1259 | struct in_device *in4_dev; | 1260 | struct in_device *in4_dev; |
1260 | 1261 | ||
1261 | card = (struct lcs_card *) data; | 1262 | card = (struct lcs_card *) data; |
1262 | daemonize("regipm"); | ||
1263 | 1263 | ||
1264 | if (!lcs_do_run_thread(card, LCS_SET_MC_THREAD)) | 1264 | if (!lcs_do_run_thread(card, LCS_SET_MC_THREAD)) |
1265 | return 0; | 1265 | return 0; |
@@ -1753,11 +1753,10 @@ lcs_start_kernel_thread(struct work_struct *work) | |||
1753 | struct lcs_card *card = container_of(work, struct lcs_card, kernel_thread_starter); | 1753 | struct lcs_card *card = container_of(work, struct lcs_card, kernel_thread_starter); |
1754 | LCS_DBF_TEXT(5, trace, "krnthrd"); | 1754 | LCS_DBF_TEXT(5, trace, "krnthrd"); |
1755 | if (lcs_do_start_thread(card, LCS_RECOVERY_THREAD)) | 1755 | if (lcs_do_start_thread(card, LCS_RECOVERY_THREAD)) |
1756 | kernel_thread(lcs_recovery, (void *) card, SIGCHLD); | 1756 | kthread_run(lcs_recovery, card, "lcs_recover"); |
1757 | #ifdef CONFIG_IP_MULTICAST | 1757 | #ifdef CONFIG_IP_MULTICAST |
1758 | if (lcs_do_start_thread(card, LCS_SET_MC_THREAD)) | 1758 | if (lcs_do_start_thread(card, LCS_SET_MC_THREAD)) |
1759 | kernel_thread(lcs_register_mc_addresses, | 1759 | kthread_run(lcs_register_mc_addresses, card, "regipm"); |
1760 | (void *) card, SIGCHLD); | ||
1761 | #endif | 1760 | #endif |
1762 | } | 1761 | } |
1763 | 1762 | ||
@@ -2269,7 +2268,6 @@ lcs_recovery(void *ptr) | |||
2269 | int rc; | 2268 | int rc; |
2270 | 2269 | ||
2271 | card = (struct lcs_card *) ptr; | 2270 | card = (struct lcs_card *) ptr; |
2272 | daemonize("lcs_recover"); | ||
2273 | 2271 | ||
2274 | LCS_DBF_TEXT(4, trace, "recover1"); | 2272 | LCS_DBF_TEXT(4, trace, "recover1"); |
2275 | if (!lcs_do_run_thread(card, LCS_RECOVERY_THREAD)) | 2273 | if (!lcs_do_run_thread(card, LCS_RECOVERY_THREAD)) |