Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187096
b: refs/heads/master
c: 62e877b
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Rothwell authored and Greg Kroah-Hartman committed Mar 8, 2010
1 parent e6e80d4 commit 9eac6ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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: 0f4288ec6fcc1a47d1fa0241ec1c6dacd5a09e96
refs/heads/master: 62e877b893e6350c900d381f353aa62ed48dcc97
4 changes: 2 additions & 2 deletions trunk/drivers/pci/pci-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ void pci_create_legacy_files(struct pci_bus *b)
if (!b->legacy_io)
goto kzalloc_err;

sysfs_bin_attr_init(&b->legacy_io);
sysfs_bin_attr_init(b->legacy_io);
b->legacy_io->attr.name = "legacy_io";
b->legacy_io->size = 0xffff;
b->legacy_io->attr.mode = S_IRUSR | S_IWUSR;
Expand All @@ -655,7 +655,7 @@ void pci_create_legacy_files(struct pci_bus *b)
goto legacy_io_err;

/* Allocated above after the legacy_io struct */
sysfs_bin_attr_init(&b->legacy_mem);
sysfs_bin_attr_init(b->legacy_mem);
b->legacy_mem = b->legacy_io + 1;
b->legacy_mem->attr.name = "legacy_mem";
b->legacy_mem->size = 1024*1024;
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/sysfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ struct bin_attribute {
* enabled. Lockdep gives a nice error when your attribute is
* added to sysfs if you don't have this.
*/
#define sysfs_bin_attr_init(bin_attr) sysfs_attr_init(&bin_attr->attr)
#define sysfs_bin_attr_init(bin_attr) sysfs_attr_init(&(bin_attr)->attr)

struct sysfs_ops {
ssize_t (*show)(struct kobject *, struct attribute *,char *);
Expand Down

0 comments on commit 9eac6ca

Please sign in to comment.