diff options
author | Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com> | 2013-01-30 22:23:53 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-02-02 14:10:23 -0500 |
commit | 02df7349d29f99ede4c97504ab67e3082c95c15e (patch) | |
tree | 787bec984cf0491b25bf4dd792f69a277a24caa9 /drivers/acpi/dock.c | |
parent | 456de893ea1a693dc266c5464a6d857bfed0875f (diff) |
ACPI / dock: Fix acpi_bus_get_device() check in drivers/acpi/dock.c
acpi_bus_get_device() returns int not acpi_status.
The patch change not to apply ACPI_SUCCESS() to the return value of
acpi_bus_get_device().
Signed-off-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/dock.c')
-rw-r--r-- | drivers/acpi/dock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index 78648f811049..68d720af71ed 100644 --- a/drivers/acpi/dock.c +++ b/drivers/acpi/dock.c | |||
@@ -825,7 +825,7 @@ static ssize_t show_docked(struct device *dev, | |||
825 | 825 | ||
826 | struct dock_station *dock_station = dev->platform_data; | 826 | struct dock_station *dock_station = dev->platform_data; |
827 | 827 | ||
828 | if (ACPI_SUCCESS(acpi_bus_get_device(dock_station->handle, &tmp))) | 828 | if (!acpi_bus_get_device(dock_station->handle, &tmp)) |
829 | return snprintf(buf, PAGE_SIZE, "1\n"); | 829 | return snprintf(buf, PAGE_SIZE, "1\n"); |
830 | return snprintf(buf, PAGE_SIZE, "0\n"); | 830 | return snprintf(buf, PAGE_SIZE, "0\n"); |
831 | } | 831 | } |