Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205519
b: refs/heads/master
c: 0983ca2
h: refs/heads/master
i:
  205517: 7be6242
  205515: ea85f79
  205511: 797a678
  205503: 90e8af1
v: v3
  • Loading branch information
Dmitry Torokhov authored and Greg Kroah-Hartman committed Aug 5, 2010
1 parent a8bf975 commit 7e01b9f
Show file tree
Hide file tree
Showing 2 changed files with 4 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: cc7447a5fa92759b0856d6a83ba2539c6a94e67e
refs/heads/master: 0983ca2d0f0ff645bc86899aefb936cffb314839
9 changes: 3 additions & 6 deletions trunk/drivers/base/firmware_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ static DEFINE_MUTEX(fw_lock);

struct firmware_priv {
struct completion completion;
struct bin_attribute attr_data;
struct firmware *fw;
unsigned long status;
struct page **pages;
Expand Down Expand Up @@ -420,8 +419,8 @@ firmware_data_write(struct file* filp, struct kobject *kobj,
return retval;
}

static struct bin_attribute firmware_attr_data_tmpl = {
.attr = {.name = "data", .mode = 0644},
static struct bin_attribute firmware_attr_data = {
.attr = { .name = "data", .mode = 0644 },
.size = 0,
.read = firmware_data_read,
.write = firmware_data_write,
Expand Down Expand Up @@ -452,7 +451,6 @@ static int fw_register_device(struct device **dev_p, const char *fw_name,

strcpy(fw_priv->fw_id, fw_name);
init_completion(&fw_priv->completion);
fw_priv->attr_data = firmware_attr_data_tmpl;
fw_priv->timeout.function = firmware_class_timeout;
fw_priv->timeout.data = (u_long) fw_priv;
init_timer(&fw_priv->timeout);
Expand Down Expand Up @@ -498,8 +496,7 @@ static int fw_setup_device(struct firmware *fw, struct device **dev_p,
fw_priv->nowait = nowait;

fw_priv->fw = fw;
sysfs_bin_attr_init(&fw_priv->attr_data);
retval = sysfs_create_bin_file(&f_dev->kobj, &fw_priv->attr_data);
retval = sysfs_create_bin_file(&f_dev->kobj, &firmware_attr_data);
if (retval) {
dev_err(device, "%s: sysfs_create_bin_file failed\n", __func__);
goto error_unreg;
Expand Down

0 comments on commit 7e01b9f

Please sign in to comment.