Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75778
b: refs/heads/master
c: 99e0d2f
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jan 25, 2008
1 parent 8f4621c commit 6400e3d
Show file tree
Hide file tree
Showing 4 changed files with 9 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: 9651d350ab2c1b9ef1875be2a9def1c375e6503f
refs/heads/master: 99e0d2fc6c60ca44f56203eeda9fc0e07b508f06
11 changes: 6 additions & 5 deletions trunk/drivers/acpi/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ static int __init acpi_bus_init(void)
return -ENODEV;
}

decl_subsys(acpi, NULL);
struct kobject *acpi_kobj;

static int __init acpi_init(void)
{
Expand All @@ -755,10 +755,11 @@ static int __init acpi_init(void)
return -ENODEV;
}

result = firmware_register(&acpi_subsys);
if (result < 0)
printk(KERN_WARNING "%s: firmware_register error: %d\n",
__FUNCTION__, result);
acpi_kobj = kobject_create_and_add("acpi", &firmware_kset->kobj);
if (!acpi_kobj) {
printk(KERN_WARNING "%s: kset create error\n", __FUNCTION__);
acpi_kobj = NULL;
}

result = acpi_bus_init();

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/acpi/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static int acpi_system_sysfs_init(void)
int table_index = 0;
int result;

tables_kobj.parent = &acpi_subsys.kobj;
tables_kobj.parent = acpi_kobj;
kobject_set_name(&tables_kobj, "tables");
result = kobject_register(&tables_kobj);
if (result)
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/acpi/acpi_bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ struct acpi_bus_event {
u32 data;
};

extern struct kset acpi_subsys;
extern struct kobject *acpi_kobj;
extern int acpi_bus_generate_netlink_event(const char*, const char*, u8, int);
/*
* External Functions
Expand Down

0 comments on commit 6400e3d

Please sign in to comment.