Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54034
b: refs/heads/master
c: 134c99e
h: refs/heads/master
v: v3
  • Loading branch information
Eric W. Biederman authored and Russell King committed May 3, 2007
1 parent 7387797 commit 85fdeb7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 73b6a2be8b29b2067aa3c0f1d6433b6148d88705
refs/heads/master: 134c99e907ef2572cdaa148c191984b95d671981
14 changes: 7 additions & 7 deletions trunk/arch/arm/kernel/ecard.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <linux/device.h>
#include <linux/init.h>
#include <linux/mutex.h>
#include <linux/kthread.h>

#include <asm/dma.h>
#include <asm/ecard.h>
Expand Down Expand Up @@ -263,8 +264,6 @@ static int ecard_init_mm(void)
static int
ecard_task(void * unused)
{
daemonize("kecardd");

/*
* Allocate a mm. We're not a lazy-TLB kernel task since we need
* to set page table entries where the user space would be. Note
Expand Down Expand Up @@ -1059,13 +1058,14 @@ ecard_probe(int slot, card_type_t type)
*/
static int __init ecard_init(void)
{
int slot, irqhw, ret;
struct task_struct *task;
int slot, irqhw;

ret = kernel_thread(ecard_task, NULL, CLONE_KERNEL);
if (ret < 0) {
task = kthread_run(ecard_task, NULL, "kecardd");
if (IS_ERR(task)) {
printk(KERN_ERR "Ecard: unable to create kernel thread: %d\n",
ret);
return ret;
PTR_ERR(task));
return PTR_ERR(task);
}

printk("Probing expansion cards\n");
Expand Down

0 comments on commit 85fdeb7

Please sign in to comment.