Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298052
b: refs/heads/master
c: b60e7f6
h: refs/heads/master
v: v3
  • Loading branch information
Igor Murzov authored and Len Brown committed Mar 30, 2012
1 parent 7cdcd51 commit 3046be3
Show file tree
Hide file tree
Showing 2 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: ea9f8856bd6d4ed45885b06a338f7362cd6c60e5
refs/heads/master: b60e7f6166857c76871977794fa266b02da1f394
15 changes: 8 additions & 7 deletions trunk/drivers/acpi/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1658,16 +1658,17 @@ static int acpi_video_bus_add(struct acpi_device *device)
error = acpi_video_bus_get_devices(video, device);
if (error)
goto err_free_video;
error = acpi_video_bus_start_devices(video);
if (error)
goto err_put_video;

video->input = input = input_allocate_device();
if (!input) {
error = -ENOMEM;
goto err_stop_video;
goto err_put_video;
}

error = acpi_video_bus_start_devices(video);
if (error)
goto err_free_input_dev;

snprintf(video->phys, sizeof(video->phys),
"%s/video/input0", acpi_device_hid(video->device));

Expand All @@ -1688,7 +1689,7 @@ static int acpi_video_bus_add(struct acpi_device *device)

error = input_register_device(input);
if (error)
goto err_free_input_dev;
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),
Expand All @@ -1706,10 +1707,10 @@ static int acpi_video_bus_add(struct acpi_device *device)

err_unregister_input_dev:
input_unregister_device(input);
err_free_input_dev:
input_free_device(input);
err_stop_video:
acpi_video_bus_stop_devices(video);
err_free_input_dev:
input_free_device(input);
err_put_video:
acpi_video_bus_put_devices(video);
kfree(video->attached_array);
Expand Down

0 comments on commit 3046be3

Please sign in to comment.