Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63938
b: refs/heads/master
c: ac36393
h: refs/heads/master
v: v3
  • Loading branch information
Henrique de Moraes Holschuh authored and Len Brown committed Aug 3, 2007
1 parent d6d04c6 commit fdb42d7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 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: f7b88ccb63188e775fe02e746c39ed177741cfc7
refs/heads/master: ac36393de6034be7266264a435360e7628849005
7 changes: 1 addition & 6 deletions trunk/drivers/char/sonypi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1147,15 +1147,10 @@ static int sonypi_acpi_remove(struct acpi_device *device, int type)
return 0;
}

const static struct acpi_device_id sonypi_device_ids[] = {
{"SNY6001", 0},
{"", 0},
};

static struct acpi_driver sonypi_acpi_driver = {
.name = "sonypi",
.class = "hkey",
.ids = sonypi_device_ids,
.ids = "SNY6001",
.ops = {
.add = sonypi_acpi_add,
.remove = sonypi_acpi_remove,
Expand Down
7 changes: 1 addition & 6 deletions trunk/drivers/misc/sony-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ static struct sony_nc_event sony_C_events[] = {
};

/* SNC-only model map */
static struct dmi_system_id sony_nc_ids[] = {
struct dmi_system_id sony_nc_ids[] = {
{
.ident = "Sony Vaio FE Series",
.callback = sony_nc_C_enable,
Expand Down Expand Up @@ -942,11 +942,6 @@ static int sony_nc_resume(struct acpi_device *device)
}
}

/* set the last requested brightness level */
if (sony_backlight_device &&
!sony_backlight_update_status(sony_backlight_device))
printk(KERN_WARNING DRV_PFX "unable to restore brightness level");

/* re-initialize models with specific requirements */
dmi_check_system(sony_nc_ids);

Expand Down
10 changes: 8 additions & 2 deletions trunk/drivers/misc/thinkpad_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -4668,12 +4668,15 @@ static int __init thinkpad_acpi_module_init(void)
thinkpad_acpi_module_exit();
return ret;
}
tp_features.platform_drv_registered = 1;

ret = tpacpi_create_driver_attributes(&tpacpi_pdriver.driver);
if (ret) {
printk(IBM_ERR "unable to create sysfs driver attributes\n");
thinkpad_acpi_module_exit();
return ret;
}
tp_features.platform_drv_attrs_registered = 1;


/* Device initialization */
Expand Down Expand Up @@ -4756,8 +4759,11 @@ static void thinkpad_acpi_module_exit(void)
if (tpacpi_pdev)
platform_device_unregister(tpacpi_pdev);

tpacpi_remove_driver_attributes(&tpacpi_pdriver.driver);
platform_driver_unregister(&tpacpi_pdriver);
if (tp_features.platform_drv_attrs_registered)
tpacpi_remove_driver_attributes(&tpacpi_pdriver.driver);

if (tp_features.platform_drv_registered)
platform_driver_unregister(&tpacpi_pdriver);

if (proc_dir)
remove_proc_entry(IBM_PROC_DIR, acpi_root_dir);
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/misc/thinkpad_acpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ static struct {
u16 wan:1;
u16 fan_ctrl_status_undef:1;
u16 input_device_registered:1;
u16 platform_drv_registered:1;
u16 platform_drv_attrs_registered:1;
} tp_features;

struct thinkpad_id_data {
Expand Down

0 comments on commit fdb42d7

Please sign in to comment.