Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18520
b: refs/heads/master
c: 2c56084
h: refs/heads/master
v: v3
  • Loading branch information
Abhay Salunke authored and Linus Torvalds committed Jan 15, 2006
1 parent 24f768b commit 76f76b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 23 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: d063389ecf20e5c20be91a0007656deb9fc38a1c
refs/heads/master: 2c5608404e66047bbcd9b7788e7f3ee2555c8639
26 changes: 4 additions & 22 deletions trunk/drivers/firmware/dell_rbu.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
MODULE_AUTHOR("Abhay Salunke <abhay_salunke@dell.com>");
MODULE_DESCRIPTION("Driver for updating BIOS image on DELL systems");
MODULE_LICENSE("GPL");
MODULE_VERSION("3.1");
MODULE_VERSION("3.2");

#define BIOS_SCAN_LIMIT 0xffffffff
#define MAX_IMAGE_LENGTH 16
Expand Down Expand Up @@ -564,12 +564,10 @@ static ssize_t read_rbu_data(struct kobject *kobj, char *buffer,

static void callbackfn_rbu(const struct firmware *fw, void *context)
{
int rc = 0;
rbu_data.entry_created = 0;

if (!fw || !fw->size) {
rbu_data.entry_created = 0;
if (!fw || !fw->size)
return;
}

spin_lock(&rbu_data.lock);
if (!strcmp(image_type, "mono")) {
Expand All @@ -592,15 +590,6 @@ static void callbackfn_rbu(const struct firmware *fw, void *context)
} else
pr_debug("invalid image type specified.\n");
spin_unlock(&rbu_data.lock);

rc = request_firmware_nowait(THIS_MODULE, FW_ACTION_NOHOTPLUG,
"dell_rbu", &rbu_device->dev, &context, callbackfn_rbu);
if (rc)
printk(KERN_ERR
"dell_rbu:%s request_firmware_nowait failed"
" %d\n", __FUNCTION__, rc);
else
rbu_data.entry_created = 1;
}

static ssize_t read_rbu_image_type(struct kobject *kobj, char *buffer,
Expand Down Expand Up @@ -735,14 +724,7 @@ static int __init dcdrbu_init(void)
sysfs_create_bin_file(&rbu_device->dev.kobj,
&rbu_packet_size_attr);

rc = request_firmware_nowait(THIS_MODULE, FW_ACTION_NOHOTPLUG,
"dell_rbu", &rbu_device->dev, &context, callbackfn_rbu);
if (rc)
printk(KERN_ERR "dell_rbu:%s:request_firmware_nowait"
" failed %d\n", __FUNCTION__, rc);
else
rbu_data.entry_created = 1;

rbu_data.entry_created = 0;
return rc;

}
Expand Down

0 comments on commit 76f76b8

Please sign in to comment.