git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[S390] proper use of device register
[safe/jmp/linux-2.6]
/
drivers
/
s390
/
cio
/
chp.c
diff --git
a/drivers/s390/cio/chp.c
b/drivers/s390/cio/chp.c
index
3e5f304
..
4000283
100644
(file)
--- a/
drivers/s390/cio/chp.c
+++ b/
drivers/s390/cio/chp.c
@@
-417,7
+417,8
@@
int chp_new(struct chp_id chpid)
if (ret) {
CIO_MSG_EVENT(0, "Could not register chp%x.%02x: %d\n",
chpid.cssid, chpid.id, ret);
- goto out_free;
+ put_device(&chp->dev);
+ goto out;
}
ret = sysfs_create_group(&chp->dev.kobj, &chp_attr_group);
if (ret) {