Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40946
b: refs/heads/master
c: 6897083
h: refs/heads/master
v: v3
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Nov 16, 2006
1 parent bdc817d commit 761a82f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: 55aa601e14cbec987fa577a895e9297df1d0a71d
refs/heads/master: 6897083abfb0156b533ab8ac42c47f68c550ca9e
9 changes: 4 additions & 5 deletions trunk/drivers/firmware/dell_rbu.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,17 +705,16 @@ static struct bin_attribute rbu_packet_size_attr = {

static int __init dcdrbu_init(void)
{
int rc = 0;
int rc;
spin_lock_init(&rbu_data.lock);

init_packet_head();
rbu_device =
platform_device_register_simple("dell_rbu", -1, NULL, 0);
if (!rbu_device) {
rbu_device = platform_device_register_simple("dell_rbu", -1, NULL, 0);
if (IS_ERR(rbu_device)) {
printk(KERN_ERR
"dell_rbu:%s:platform_device_register_simple "
"failed\n", __FUNCTION__);
return -EIO;
return PTR_ERR(rbu_device);
}

rc = sysfs_create_bin_file(&rbu_device->dev.kobj, &rbu_data_attr);
Expand Down

0 comments on commit 761a82f

Please sign in to comment.