Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131095
b: refs/heads/master
c: fc5a9f8
h: refs/heads/master
i:
  131093: cb0acd5
  131091: 518f581
  131087: c669781
v: v3
  • Loading branch information
Holger Macht authored and Len Brown committed Feb 7, 2009
1 parent fabc65c commit f048c89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 9e3a9d1ed8cc8db93e5c53e9a5b09065bd95de8b
refs/heads/master: fc5a9f8841ee87d93376ada5d73117d4d6a373ea
6 changes: 5 additions & 1 deletion trunk/drivers/acpi/dock.c
Original file line number Diff line number Diff line change
Expand Up @@ -855,10 +855,14 @@ find_dock_devices(acpi_handle handle, u32 lvl, void *context, void **rv)
static ssize_t show_docked(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct acpi_device *tmp;

struct dock_station *dock_station = *((struct dock_station **)
dev->platform_data);
return snprintf(buf, PAGE_SIZE, "%d\n", dock_present(dock_station));

if (ACPI_SUCCESS(acpi_bus_get_device(dock_station->handle, &tmp)))
return snprintf(buf, PAGE_SIZE, "1\n");
return snprintf(buf, PAGE_SIZE, "0\n");
}
static DEVICE_ATTR(docked, S_IRUGO, show_docked, NULL);

Expand Down

0 comments on commit f048c89

Please sign in to comment.