Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295294
b: refs/heads/master
c: 454ca60
h: refs/heads/master
v: v3
  • Loading branch information
Paul Gortmaker authored and Tony Luck committed Feb 27, 2012
1 parent 12ae72e commit 6223960
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: c19ce0ab53ad9698968a154647f3dc22aad6c45b
refs/heads/master: 454ca6040acc441221d1b07c38c6127947a223d0
7 changes: 6 additions & 1 deletion trunk/arch/ia64/sn/kernel/tiocx.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ cx_device_register(nasid_t nasid, int part_num, int mfg_num,
struct hubdev_info *hubdev, int bt)
{
struct cx_dev *cx_dev;
int r;

cx_dev = kzalloc(sizeof(struct cx_dev), GFP_KERNEL);
DBG("cx_dev= 0x%p\n", cx_dev);
Expand All @@ -207,7 +208,11 @@ cx_device_register(nasid_t nasid, int part_num, int mfg_num,
cx_dev->dev.bus = &tiocx_bus_type;
cx_dev->dev.release = tiocx_bus_release;
dev_set_name(&cx_dev->dev, "%d", cx_dev->cx_id.nasid);
device_register(&cx_dev->dev);
r = device_register(&cx_dev->dev);
if (r) {
kfree(cx_dev);
return r;
}
get_device(&cx_dev->dev);

device_create_file(&cx_dev->dev, &dev_attr_cxdev_control);
Expand Down

0 comments on commit 6223960

Please sign in to comment.