Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64394
b: refs/heads/master
c: 015a916
h: refs/heads/master
v: v3
  • Loading branch information
Mattia Dongili authored and Len Brown committed Aug 24, 2007
1 parent 5bf14d9 commit 22cb1ac
Show file tree
Hide file tree
Showing 2 changed files with 10 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: f46d1604ed84e5a4107bae1db7283e3a76d72ace
refs/heads/master: 015a916fbbf105bb15f4bbfd80c3b9b2f2e0d7db
15 changes: 9 additions & 6 deletions trunk/drivers/misc/sony-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -2317,8 +2317,6 @@ static int sony_pic_remove(struct acpi_device *device, int type)
struct sony_pic_ioport *io, *tmp_io;
struct sony_pic_irq *irq, *tmp_irq;

sonypi_compat_exit();

if (sony_pic_disable(device)) {
printk(KERN_ERR DRV_PFX "Couldn't disable device.\n");
return -ENXIO;
Expand All @@ -2328,6 +2326,8 @@ static int sony_pic_remove(struct acpi_device *device, int type)
release_region(spic_dev.cur_ioport->io.minimum,
spic_dev.cur_ioport->io.address_length);

sonypi_compat_exit();

sony_laptop_remove_input();

/* pf attrs */
Expand Down Expand Up @@ -2393,6 +2393,9 @@ static int sony_pic_add(struct acpi_device *device)
goto err_free_resources;
}

if (sonypi_compat_init())
goto err_remove_input;

/* request io port */
list_for_each_entry(io, &spic_dev.ioports, list) {
if (request_region(io->io.minimum, io->io.address_length,
Expand All @@ -2407,7 +2410,7 @@ static int sony_pic_add(struct acpi_device *device)
if (!spic_dev.cur_ioport) {
printk(KERN_ERR DRV_PFX "Failed to request_region.\n");
result = -ENODEV;
goto err_remove_input;
goto err_remove_compat;
}

/* request IRQ */
Expand Down Expand Up @@ -2447,9 +2450,6 @@ static int sony_pic_add(struct acpi_device *device)
if (result)
goto err_remove_pf;

if (sonypi_compat_init())
goto err_remove_pf;

return 0;

err_remove_pf:
Expand All @@ -2465,6 +2465,9 @@ static int sony_pic_add(struct acpi_device *device)
release_region(spic_dev.cur_ioport->io.minimum,
spic_dev.cur_ioport->io.address_length);

err_remove_compat:
sonypi_compat_exit();

err_remove_input:
sony_laptop_remove_input();

Expand Down

0 comments on commit 22cb1ac

Please sign in to comment.