Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75807
b: refs/heads/master
c: a77aa28
h: refs/heads/master
i:
  75805: 51cfcec
  75803: 40e872a
  75799: b1cbcac
  75791: 6cfa365
  75775: 83ddbd3
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 25, 2008
1 parent 15c61f9 commit 2f4ca65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: 5b3f355d8fef95901505e924818b3031092453c2
refs/heads/master: a77aa28a2db3d134dd387f0f05cd6b6717fb1d28
13 changes: 6 additions & 7 deletions trunk/drivers/acpi/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module_param_call(acpica_version, NULL, param_get_acpica_version, NULL, 0444);
FS Interface (/sys)
-------------------------------------------------------------------------- */
static LIST_HEAD(acpi_table_attr_list);
static struct kobject tables_kobj;
static struct kobject *tables_kobj;

struct acpi_table_attr {
struct bin_attribute attr;
Expand Down Expand Up @@ -135,11 +135,9 @@ static int acpi_system_sysfs_init(void)
int table_index = 0;
int result;

tables_kobj.parent = acpi_kobj;
kobject_set_name(&tables_kobj, "tables");
result = kobject_register(&tables_kobj);
if (result)
return result;
tables_kobj = kobject_create_and_add("tables", acpi_kobj);
if (!tables_kobj)
return -ENOMEM;

do {
result = acpi_get_table_by_index(table_index, &table_header);
Expand All @@ -153,7 +151,7 @@ static int acpi_system_sysfs_init(void)

acpi_table_attr_init(table_attr, table_header);
result =
sysfs_create_bin_file(&tables_kobj,
sysfs_create_bin_file(tables_kobj,
&table_attr->attr);
if (result) {
kfree(table_attr);
Expand All @@ -163,6 +161,7 @@ static int acpi_system_sysfs_init(void)
&acpi_table_attr_list);
}
} while (!result);
kobject_uevent(tables_kobj, KOBJ_ADD);

return 0;
}
Expand Down

0 comments on commit 2f4ca65

Please sign in to comment.