Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119057
b: refs/heads/master
c: b176945
h: refs/heads/master
i:
  119055: c04ef02
v: v3
  • Loading branch information
Dominik Brodowski committed Nov 9, 2008
1 parent 9842582 commit 43299b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 980fc29f20f5cfb8cef29ddfccecb685f299ada4
refs/heads/master: b1769450da0eeae2d95aae5496acbdf4c6ba89b2
12 changes: 6 additions & 6 deletions trunk/drivers/pcmcia/cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,6 @@ int pcmcia_register_socket(struct pcmcia_socket *socket)

spin_lock_init(&socket->lock);

if (socket->resource_ops->init) {
ret = socket->resource_ops->init(socket);
if (ret)
return (ret);
}

/* try to obtain a socket number [yes, it gets ugly if we
* register more than 2^sizeof(unsigned int) pcmcia
* sockets... but the socket number is deprecated
Expand Down Expand Up @@ -239,6 +233,12 @@ int pcmcia_register_socket(struct pcmcia_socket *socket)
mutex_init(&socket->skt_mutex);
spin_lock_init(&socket->thread_lock);

if (socket->resource_ops->init) {
ret = socket->resource_ops->init(socket);
if (ret)
goto err;
}

tsk = kthread_run(pccardd, socket, "pccardd");
if (IS_ERR(tsk)) {
ret = PTR_ERR(tsk);
Expand Down

0 comments on commit 43299b1

Please sign in to comment.