Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310532
b: refs/heads/master
c: 301f33f
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Len Brown committed Jun 1, 2012
1 parent 2e3eb5d commit c258ee7
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 155689defc782b486a7e6776a57ecc4ebb37ed52
refs/heads/master: 301f33fbcf4ced53b3de114846ecece5d6aafeeb
14 changes: 7 additions & 7 deletions trunk/drivers/acpi/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1687,10 +1687,6 @@ static int acpi_video_bus_add(struct acpi_device *device)
set_bit(KEY_BRIGHTNESS_ZERO, input->keybit);
set_bit(KEY_DISPLAY_OFF, input->keybit);

error = input_register_device(input);
if (error)
goto err_stop_video;

printk(KERN_INFO PREFIX "%s [%s] (multi-head: %s rom: %s post: %s)\n",
ACPI_VIDEO_DEVICE_NAME, acpi_device_bid(device),
video->flags.multihead ? "yes" : "no",
Expand All @@ -1701,12 +1697,16 @@ static int acpi_video_bus_add(struct acpi_device *device)
video->pm_nb.priority = 0;
error = register_pm_notifier(&video->pm_nb);
if (error)
goto err_unregister_input_dev;
goto err_stop_video;

error = input_register_device(input);
if (error)
goto err_unregister_pm_notifier;

return 0;

err_unregister_input_dev:
input_unregister_device(input);
err_unregister_pm_notifier:
unregister_pm_notifier(&video->pm_nb);
err_stop_video:
acpi_video_bus_stop_devices(video);
err_free_input_dev:
Expand Down

0 comments on commit c258ee7

Please sign in to comment.