Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202205
b: refs/heads/master
c: 02b5fac
h: refs/heads/master
i:
  202203: 6c5d8a3
v: v3
  • Loading branch information
Axel Lin authored and Dmitry Torokhov committed Jul 13, 2010
1 parent 3fcb7c7 commit 7468a20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 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: 07d19ffce54faa5591954bab3644b6f2ff31640c
refs/heads/master: 02b5fac1f71c21a84da025973ccb14e4ec6f6d4a
14 changes: 6 additions & 8 deletions trunk/drivers/input/misc/atlas_btns.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ static acpi_status acpi_atlas_button_handler(u32 function,
input_report_key(input_dev, atlas_keymap[code], key_down);
input_sync(input_dev);

status = 0;
status = AE_OK;
} else {
printk(KERN_WARNING "atlas: shrugged on unexpected function"
":function=%x,address=%lx,value=%x\n",
function, (unsigned long)address, (u32)*value);
status = -EINVAL;
status = AE_BAD_PARAMETER;
}

return status;
Expand Down Expand Up @@ -114,10 +114,10 @@ static int atlas_acpi_button_add(struct acpi_device *device)
if (ACPI_FAILURE(status)) {
printk(KERN_ERR "Atlas: Error installing addr spc handler\n");
input_unregister_device(input_dev);
status = -EINVAL;
err = -EINVAL;
}

return status;
return err;
}

static int atlas_acpi_button_remove(struct acpi_device *device, int type)
Expand All @@ -126,14 +126,12 @@ static int atlas_acpi_button_remove(struct acpi_device *device, int type)

status = acpi_remove_address_space_handler(device->handle,
0x81, &acpi_atlas_button_handler);
if (ACPI_FAILURE(status)) {
if (ACPI_FAILURE(status))
printk(KERN_ERR "Atlas: Error removing addr spc handler\n");
status = -EINVAL;
}

input_unregister_device(input_dev);

return status;
return 0;
}

static const struct acpi_device_id atlas_device_ids[] = {
Expand Down

0 comments on commit 7468a20

Please sign in to comment.