Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31998
b: refs/heads/master
c: e6afa0d
h: refs/heads/master
v: v3
  • Loading branch information
Patrick Mochel authored and Len Brown committed Jun 30, 2006
1 parent e8bbd09 commit aa96446
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 415985728895ba3127116bc4f999caf94420ed85
refs/heads/master: e6afa0de1476290a876dfd1237a97cce7735581c
8 changes: 4 additions & 4 deletions trunk/drivers/acpi/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ struct acpi_video_enumerated_device {

struct acpi_video_bus {
acpi_handle handle;
struct acpi_device *device;
u8 dos_setting;
struct acpi_video_enumerated_device *attached_array;
u8 attached_count;
Expand Down Expand Up @@ -1624,8 +1625,7 @@ static void acpi_video_bus_notify(acpi_handle handle, u32 event, void *data)
if (!video)
return;

if (acpi_bus_get_device(handle, &device))
return;
device = video->device;

switch (event) {
case ACPI_VIDEO_NOTIFY_SWITCH: /* User request that a switch occur,
Expand Down Expand Up @@ -1668,8 +1668,7 @@ static void acpi_video_device_notify(acpi_handle handle, u32 event, void *data)
if (!video_device)
return;

if (acpi_bus_get_device(handle, &device))
return;
device = video_device->dev;

switch (event) {
case ACPI_VIDEO_NOTIFY_SWITCH: /* change in status (cycle output device) */
Expand Down Expand Up @@ -1708,6 +1707,7 @@ static int acpi_video_bus_add(struct acpi_device *device)
memset(video, 0, sizeof(struct acpi_video_bus));

video->handle = device->handle;
video->device = device;
strcpy(acpi_device_name(device), ACPI_VIDEO_BUS_NAME);
strcpy(acpi_device_class(device), ACPI_VIDEO_CLASS);
acpi_driver_data(device) = video;
Expand Down

0 comments on commit aa96446

Please sign in to comment.